From 07ac5669a009a4fa2b2e67434b572d91326ea591 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 31 Jan 2025 08:47:27 +0100 Subject: [PATCH] wgl: only load opengl32.dll from %windows%\system32 --- modules/video_output/win32/wgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_output/win32/wgl.c b/modules/video_output/win32/wgl.c index e179c24ac6..5c19530137 100644 --- a/modules/video_output/win32/wgl.c +++ b/modules/video_output/win32/wgl.c @@ -175,7 +175,7 @@ static int Open(vlc_gl_t *gl, unsigned width, unsigned height, sys->hvideownd = wnd->handle.hwnd; sys->hGLDC = GetDC(sys->hvideownd); - sys->hOpengl = LoadLibraryA("opengl32.dll"); + sys->hOpengl = LoadLibraryExA("opengl32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); if (sys->hGLDC == NULL) { msg_Err(gl, "Could not get the device context");