mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +00:00
[NTOS:OB] Fix incorrect variable name in ObfDereferenceObject.
This commit is contained in:
parent
60346a5732
commit
8c8c03e9a8
1 changed files with 9 additions and 9 deletions
|
@ -320,7 +320,7 @@ FASTCALL
|
|||
ObfDereferenceObject(IN PVOID Object)
|
||||
{
|
||||
POBJECT_HEADER Header;
|
||||
LONG_PTR OldCount;
|
||||
LONG_PTR NewCount;
|
||||
|
||||
/* Extract the object header */
|
||||
Header = OBJECT_TO_OBJECT_HEADER(Object);
|
||||
|
@ -332,8 +332,8 @@ ObfDereferenceObject(IN PVOID Object)
|
|||
}
|
||||
|
||||
/* Check whether the object can now be deleted. */
|
||||
OldCount = InterlockedDecrementSizeT(&Header->PointerCount);
|
||||
if (!OldCount)
|
||||
NewCount = InterlockedDecrementSizeT(&Header->PointerCount);
|
||||
if (!NewCount)
|
||||
{
|
||||
/* Sanity check */
|
||||
ASSERT(Header->HandleCount == 0);
|
||||
|
@ -351,8 +351,8 @@ ObfDereferenceObject(IN PVOID Object)
|
|||
}
|
||||
}
|
||||
|
||||
/* Return the old count */
|
||||
return OldCount;
|
||||
/* Return the new count */
|
||||
return NewCount;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue