A NULL module handle means 'main exe' in GetProcAddress too.
This commit is contained in:
parent
4a40b2eefb
commit
f315d8b0c4
|
@ -810,6 +810,8 @@ FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )
|
|||
NTSTATUS nts;
|
||||
FARPROC fp;
|
||||
|
||||
if (!hModule) hModule = NtCurrentTeb()->Peb->ImageBaseAddress;
|
||||
|
||||
if (HIWORD(function))
|
||||
{
|
||||
ANSI_STRING str;
|
||||
|
|
Loading…
Reference in New Issue