Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 176 of file obref.c.
{ EX_FAST_REF OldValue; PVOID OldObject; ULONG Count; /* Check if we were given an object and reference it 7 times */ if (Object) ObReferenceObjectEx(Object, MAX_FAST_REFS); /* Do the swap */ OldValue = ExSwapFastReference(FastRef, Object); OldObject = ExGetObjectFastReference(OldValue); /* Check if we had an active object and dereference it */ Count = ExGetCountFastReference(OldValue); if ((OldObject) && (Count)) ObDereferenceObjectEx(OldObject, Count); /* Return the old object */ return OldObject; }