mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- Fix fs_isdirty prototype, since there is no need to pass DriveRoot there.
svn path=/trunk/; revision=35559
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user