Commit f315d8b0 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 4a40b2ee
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment