Skip to content
Snippets Groups Projects
Commit f315d8b0 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

A NULL module handle means 'main exe' in GetProcAddress too.

parent 4a40b2ee
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment