mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13: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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user