mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[SHIMENG] Do not crash on a NULL ModuleName & BaseAddress.
CORE-14376
This commit is contained in:
@@ -315,6 +315,11 @@ PHOOKMODULEINFO SeiFindHookModuleInfo(PUNICODE_STRING ModuleName, PVOID BaseAddr
|
||||
{
|
||||
DWORD n;
|
||||
|
||||
if (ModuleName == NULL && BaseAddress == NULL)
|
||||
{
|
||||
BaseAddress = NtCurrentPeb()->ImageBaseAddress;
|
||||
}
|
||||
|
||||
for (n = 0; n < ARRAY_Size(&g_pHookArray); ++n)
|
||||
{
|
||||
PHOOKMODULEINFO pModuleInfo = ARRAY_At(&g_pHookArray, HOOKMODULEINFO, n);
|
||||
|
||||
Reference in New Issue
Block a user