mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08: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