mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 19:37:10 +00:00
[SHIMENG] Do not crash on a NULL ModuleName & BaseAddress.
CORE-14376
This commit is contained in:
parent
e8271c9a46
commit
5f52a61e7d
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue