Fix usage of PNTSTATUS instead of NTSTATUS in NT_SUCCESS, which could result in IopCheckVpbMounted returning a wrong status code

svn path=/trunk/; revision=38121
This commit is contained in:
Timo Kreuzer 2008-12-16 18:12:13 +00:00
parent 1258b49708
commit 327684fd1c

View file

@ -70,7 +70,7 @@ IopCheckVpbMounted(IN POPEN_PACKET OpenPacket,
IopDereferenceDeviceObject(DeviceObject, FALSE);
/* Check if it was a total failure */
if (!NT_SUCCESS(Status)) return NULL;
if (!NT_SUCCESS(*Status)) return NULL;
/* Otherwise we were alerted */
*Status = STATUS_WRONG_VOLUME;