mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
Fix incorrect parameters to IoSetDeviceToVerify/IoVerifyVolume. Spotted by R.T.Sivakumar <rtshiva@gmail.com>.
svn path=/trunk/; revision=33449
This commit is contained in:
parent
b512080393
commit
0e6c1e1d3a
1 changed files with 3 additions and 4 deletions
|
@ -382,11 +382,10 @@ VfatOpenFile (
|
|||
DPRINT ("Media change detected!\n");
|
||||
DPRINT ("Device %p\n", DeviceExt->StorageDevice);
|
||||
|
||||
/* Find the device to verify and reset the thread field to empty value again. */
|
||||
DeviceToVerify = IoGetDeviceToVerify (PsGetCurrentThread ());
|
||||
|
||||
IoSetDeviceToVerify (PsGetCurrentThread (),
|
||||
NULL);
|
||||
Status = IoVerifyVolume (DeviceExt->StorageDevice,
|
||||
IoSetDeviceToVerify (PsGetCurrentThread (), NULL);
|
||||
Status = IoVerifyVolume (DeviceToVerify,
|
||||
FALSE);
|
||||
}
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue