- Fix fs_isdirty prototype, since there is no need to pass DriveRoot there.

svn path=/trunk/; revision=35559
This commit is contained in:
Aleksey Bragin 2008-08-23 10:49:57 +00:00
parent f460c4e31c
commit ccfc2dc23d
3 changed files with 4 additions and 4 deletions

View file

@ -80,14 +80,14 @@ void fs_open(PUNICODE_STRING DriveRoot,int rw)
did_change = 0;
}
BOOLEAN fs_isdirty(PUNICODE_STRING DriveRoot)
BOOLEAN fs_isdirty()
{
ULONG DirtyMask = 0;
NTSTATUS Status;
IO_STATUS_BLOCK IoSb;
/* Check if volume is dirty */
Status = NtFsControlFile(fd/*FileSystem*/,
Status = NtFsControlFile(fd,
NULL, NULL, NULL, &IoSb,
FSCTL_IS_VOLUME_DIRTY,
NULL, 0, &DirtyMask, sizeof(DirtyMask));

View file

@ -21,7 +21,7 @@ void fs_open(PUNICODE_STRING DriveRoot,int rw);
/* Opens the file system PATH. If RW is zero, the file system is opened
read-only, otherwise, it is opened read-write. */
BOOLEAN fs_isdirty(PUNICODE_STRING DriveRoot);
BOOLEAN fs_isdirty();
/* Checks if filesystem is dirty */

View file

@ -256,7 +256,7 @@ VfatChkdsk(
/* Open filesystem */
fs_open(DriveRoot,FixErrors);
if (CheckOnlyIfDirty && !fs_isdirty(DriveRoot))
if (CheckOnlyIfDirty && !fs_isdirty())
{
/* No need to check FS */
return fs_close(FALSE);