svn path=/trunk/; revision=35559
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));
/* 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 */
/* Open filesystem */
fs_open(DriveRoot,FixErrors);
- if (CheckOnlyIfDirty && !fs_isdirty(DriveRoot))
+ if (CheckOnlyIfDirty && !fs_isdirty())
{
/* No need to check FS */
return fs_close(FALSE);