[proxy,modules] use GetModuleHandleA to load static

when loading static modules use GetModuleHandleA to allow this to work
with windows as well.
This commit is contained in:
Armin Novak
2025-08-18 08:19:22 +02:00
parent 81bc5d825c
commit 4eed6a1ed9

View File

@@ -484,7 +484,7 @@ static BOOL pf_modules_load_static_module(const char* module_name, proxyModule*
{
WINPR_ASSERT(module);
HANDLE handle = LoadLibraryX(NULL);
HANDLE handle = GetModuleHandleA(NULL);
if (handle == NULL)
{