diff --git a/server/proxy/pf_modules.c b/server/proxy/pf_modules.c index 2879dc3bb..dabfd0201 100644 --- a/server/proxy/pf_modules.c +++ b/server/proxy/pf_modules.c @@ -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) {