mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[NTOSKRNL] In case IopMountVolume call is a success, return its VPB
This fixes an extra (erroneous) reference being set on the VPB. Based on a patch by Vadim Galyant CORE-16080
This commit is contained in:
parent
f8a4d31da4
commit
9c3c0d123b
|
@ -123,6 +123,14 @@ IopCheckVpbMounted(IN POPEN_PACKET OpenPacket,
|
||||||
*Status = STATUS_WRONG_VOLUME;
|
*Status = STATUS_WRONG_VOLUME;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* In case IopMountVolume returns a valid VPB
|
||||||
|
* Then, the volume is mounted, return it
|
||||||
|
*/
|
||||||
|
else if (Vpb != NULL)
|
||||||
|
{
|
||||||
|
return Vpb;
|
||||||
|
}
|
||||||
|
|
||||||
/* Re-acquire the lock */
|
/* Re-acquire the lock */
|
||||||
IoAcquireVpbSpinLock(&OldIrql);
|
IoAcquireVpbSpinLock(&OldIrql);
|
||||||
|
|
Loading…
Reference in a new issue