mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
1 changed files with 8 additions and 0 deletions
|
@ -123,6 +123,14 @@ IopCheckVpbMounted(IN POPEN_PACKET OpenPacket,
|
|||
*Status = STATUS_WRONG_VOLUME;
|
||||
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 */
|
||||
IoAcquireVpbSpinLock(&OldIrql);
|
||||
|
|
Loading…
Reference in a new issue