Author: fireball
Date: Sat Aug 23 05:49:57 2008
New Revision: 35559
URL:
http://svn.reactos.org/svn/reactos?rev=35559&view=rev
Log:
- Fix fs_isdirty prototype, since there is no need to pass DriveRoot there.
Modified:
trunk/reactos/lib/fslib/vfatlib/check/io.c
trunk/reactos/lib/fslib/vfatlib/check/io.h
trunk/reactos/lib/fslib/vfatlib/vfatlib.c
Modified: trunk/reactos/lib/fslib/vfatlib/check/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/io…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/io.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/io.c [iso-8859-1] Sat Aug 23 05:49:57 2008
@@ -80,14 +80,14 @@
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));
Modified: trunk/reactos/lib/fslib/vfatlib/check/io.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/io…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/io.h [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/io.h [iso-8859-1] Sat Aug 23 05:49:57 2008
@@ -21,7 +21,7 @@
/* 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 */
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/vfatlib.…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/vfatlib.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/vfatlib.c [iso-8859-1] Sat Aug 23 05:49:57 2008
@@ -256,7 +256,7 @@
/* Open filesystem */
fs_open(DriveRoot,FixErrors);
- if (CheckOnlyIfDirty && !fs_isdirty(DriveRoot))
+ if (CheckOnlyIfDirty && !fs_isdirty())
{
/* No need to check FS */
return fs_close(FALSE);