mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOSKRNL] Properly reset pinning state on pinning failure
This commit is contained in:
@@ -191,6 +191,12 @@ CcPinMappedData (
|
||||
Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
|
||||
}
|
||||
|
||||
if (!Result)
|
||||
{
|
||||
iBcb->Pinned = FALSE;
|
||||
iBcb->Vacb->PinCount--;
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user