projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f8a4d31
)
[NTOSKRNL] In case IopMountVolume call is a success, return its VPB
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 2 Jun 2019 08:48:35 +0000
(10:48 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 2 Jun 2019 08:48:35 +0000
(10:48 +0200)
This fixes an extra (erroneous) reference being set on the VPB.
Based on a patch by Vadim Galyant
CORE-16080
ntoskrnl/io/iomgr/volume.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/io/iomgr/volume.c
b/ntoskrnl/io/iomgr/volume.c
index
6c2e319
..
1d1e31e
100644
(file)
--- a/
ntoskrnl/io/iomgr/volume.c
+++ b/
ntoskrnl/io/iomgr/volume.c
@@
-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);