[NTOSKRNL:KE] Better Formatting
All NULL dereferanced pointer are made nullptr to better comply with C++ 11
This commit is contained in:
parent
56e4dd1344
commit
d5aaba3c2d
@ -89,7 +89,7 @@ KiFreeRingLockNode(
|
||||
}
|
||||
|
||||
/*Clear hazard pointer if it's pointing to this node*/
|
||||
if (InterlockedCompareExchangePointer((PVOID*)&Lock->HazardPointer, NULL, Node) == Node) {
|
||||
if (InterlockedCompareExchangePointer((PVOID*)&Lock->HazardPointer,nullptr, Node) == Node) {
|
||||
LONG64 NewHead;
|
||||
do {
|
||||
NewHead = (Lock->Head + 1) & (RING_BUFFER_SIZE - 1);
|
||||
@ -138,7 +138,7 @@ KeAcquireSpinningRingLock(
|
||||
}
|
||||
|
||||
/*Clear hazard pointer*/
|
||||
InterlockedExchangePointer((PVOID*)&Lock->HazardPointer, NULL);
|
||||
InterlockedExchangePointer((PVOID*)&Lock->HazardPointer, nullptr);
|
||||
}
|
||||
|
||||
VOID
|
||||
@ -173,7 +173,7 @@ KeReleaseSpinningRingLock(
|
||||
Node->Next->Locked = 0;
|
||||
|
||||
/*Clear hazard pointer*/
|
||||
InterlockedExchangePointer((PVOID*)&Lock->HazardPointer, NULL);
|
||||
InterlockedExchangePointer((PVOID*)&Lock->HazardPointer, nullptr);
|
||||
|
||||
KiFreeRingLockNode(Lock, Node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user