Instantly share code, notes, and snippets.

Embed
What would you like to do?
void ExpDereferenceHost(PHOST_LIST_ENTRY Host)
{
if ( InterlockedExchangeAdd(Host.RefCount, 0xFFFFFFFF) == 1 )
{
ExFreePoolWithTag(Host, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment