-
-
Save yardenshafir/8c9b2132e8b1002aac0be7d691526b7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHOST_LIST_ENTRY ExpFindHost(USHORT ExtensionId, USHORT ExtensionVersion) | |
{ | |
PHOST_LIST_ENTRY entry; | |
for (entry == ExpHostList; ; entry = entry->Next) | |
{ | |
if (entry == &ExpHostList) | |
{ | |
return 0; | |
} | |
if ( *(entry->ExtensionId) == ExtensionId && *(entry->ExtensionVersion) == ExtensionVersion ) | |
{ | |
break; | |
} | |
} | |
InterlockedIncrement(entry->RefCount); | |
return entry; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment