Skip to content

Commit

Permalink
crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Sep 27, 2018
1 parent 540bc46 commit 4ca9d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/dllmain.cpp
Expand Up @@ -672,6 +672,8 @@ bool HookKernel32IAT(HMODULE mod, bool exe)
VirtualProtect((size_t*)i, sizeof(size_t), PAGE_EXECUTE_READWRITE, &dwProtect[0]);

auto ptr = *(size_t*)i;
if (!ptr)
continue;

if (ptr == Kernel32Data[eGetStartupInfoA][ProcAddress])
{
Expand Down

0 comments on commit 4ca9d0a

Please sign in to comment.