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

This commit is contained in:
Alexandre Julliard 2005-07-11 18:39:49 +00:00
parent 4a40b2eefb
commit f315d8b0c4

View File

@ -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;