From b1bce7c3c580a8345205cf65fc1a5f55ba9cdb01 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 11 Apr 2023 09:26:24 -0700 Subject: [PATCH] replaces calls to LoadLibrary with explicit calls to LoadLibraryA (#216) --- loader/windows/icd_windows.c | 2 +- loader/windows/icd_windows_apppackage.c | 2 +- loader/windows/icd_windows_dxgk.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/loader/windows/icd_windows.c b/loader/windows/icd_windows.c index 75128a93..237ec5c1 100644 --- a/loader/windows/icd_windows.c +++ b/loader/windows/icd_windows.c @@ -273,7 +273,7 @@ BOOL CALLBACK khrIcdOsVendorsEnumerate(PINIT_ONCE InitOnce, PVOID Parameter, PVO } // Add adapters according to DXGI's preference order - HMODULE hDXGI = LoadLibrary("dxgi.dll"); + HMODULE hDXGI = LoadLibraryA("dxgi.dll"); if (hDXGI) { IDXGIFactory* pFactory = NULL; diff --git a/loader/windows/icd_windows_apppackage.c b/loader/windows/icd_windows_apppackage.c index 305360b4..d9571551 100644 --- a/loader/windows/icd_windows_apppackage.c +++ b/loader/windows/icd_windows_apppackage.c @@ -39,7 +39,7 @@ bool khrIcdOsVendorsEnumerateAppPackage(void) WCHAR *buffer = NULL; PWSTR *packages = NULL; - HMODULE h = LoadLibrary("kernel32.dll"); + HMODULE h = LoadLibraryA("kernel32.dll"); if (h == NULL) return ret; diff --git a/loader/windows/icd_windows_dxgk.c b/loader/windows/icd_windows_dxgk.c index 5efa9ffe..a610b9b5 100644 --- a/loader/windows/icd_windows_dxgk.c +++ b/loader/windows/icd_windows_dxgk.c @@ -35,7 +35,7 @@ bool khrIcdOsVendorsEnumerateDXGK(void) int result = 0; // Get handle to GDI Runtime - HMODULE h = LoadLibrary("gdi32.dll"); + HMODULE h = LoadLibraryA("gdi32.dll"); if (h == NULL) return ret;