In the "null" module case _g_module_symbol should still first search the main

program before searching all the loaded DLLs.
This commit is contained in:
Tor Lillqvist
2000-03-22 22:51:54 +00:00
parent 28bd47860b
commit dd781b91ec
2 changed files with 7 additions and 1 deletions

View File

@@ -195,7 +195,10 @@ _g_module_symbol (gpointer handle,
gpointer p;
if (handle == null_module_handle)
p = find_in_any_module (symbol_name);
{
if ((p = GetProcAddress (GetModuleHandle (NULL), symbol_name)) == NULL)
p = find_in_any_module (symbol_name);
}
else
p = GetProcAddress (handle, symbol_name);