From 0e6c1e1d3a3590d2b6699eedc8a01c1f20ba6138 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 11 May 2008 20:04:47 +0000 Subject: [PATCH] Fix incorrect parameters to IoSetDeviceToVerify/IoVerifyVolume. Spotted by R.T.Sivakumar . svn path=/trunk/; revision=33449 --- reactos/drivers/filesystems/fastfat/create.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/filesystems/fastfat/create.c b/reactos/drivers/filesystems/fastfat/create.c index 36b0d03e4ed..6d2bf54fa3c 100644 --- a/reactos/drivers/filesystems/fastfat/create.c +++ b/reactos/drivers/filesystems/fastfat/create.c @@ -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))