diff --git a/reactos/lib/fslib/vfatlib/check/io.c b/reactos/lib/fslib/vfatlib/check/io.c index 19b446cb32a..e9cdcbb6ccf 100644 --- a/reactos/lib/fslib/vfatlib/check/io.c +++ b/reactos/lib/fslib/vfatlib/check/io.c @@ -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)); diff --git a/reactos/lib/fslib/vfatlib/check/io.h b/reactos/lib/fslib/vfatlib/check/io.h index 6c6675f0f9b..9dfce9b7574 100644 --- a/reactos/lib/fslib/vfatlib/check/io.h +++ b/reactos/lib/fslib/vfatlib/check/io.h @@ -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 */ diff --git a/reactos/lib/fslib/vfatlib/vfatlib.c b/reactos/lib/fslib/vfatlib/vfatlib.c index bbe72705429..0a096807a2c 100755 --- a/reactos/lib/fslib/vfatlib/vfatlib.c +++ b/reactos/lib/fslib/vfatlib/vfatlib.c @@ -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);