mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 09:36:53 +02:00
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:
parent
28bd47860b
commit
dd781b91ec
@ -11,6 +11,9 @@
|
|||||||
the latter on Win9x and Win2k. Check which one works, and use
|
the latter on Win9x and Win2k. Check which one works, and use
|
||||||
that.
|
that.
|
||||||
|
|
||||||
|
First check for the symbol in the main program, and if not found
|
||||||
|
there, in all the modules.
|
||||||
|
|
||||||
Code for using PSAPI and Toolhelp was borrowed from the Dr. Mingw
|
Code for using PSAPI and Toolhelp was borrowed from the Dr. Mingw
|
||||||
tool written by José Fonseca <em96115@fe.up.pt>. Thanks.
|
tool written by José Fonseca <em96115@fe.up.pt>. Thanks.
|
||||||
|
|
||||||
|
@ -195,7 +195,10 @@ _g_module_symbol (gpointer handle,
|
|||||||
gpointer p;
|
gpointer p;
|
||||||
|
|
||||||
if (handle == null_module_handle)
|
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
|
else
|
||||||
p = GetProcAddress (handle, symbol_name);
|
p = GetProcAddress (handle, symbol_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user