From 4eed6a1ed9b203626f1ea2acb66746ea8482234c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 18 Aug 2025 08:19:22 +0200 Subject: [PATCH] [proxy,modules] use GetModuleHandleA to load static when loading static modules use GetModuleHandleA to allow this to work with windows as well. --- server/proxy/pf_modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {