Skip to content

Commit b1bce7c

Browse files
authored
replaces calls to LoadLibrary with explicit calls to LoadLibraryA (#216)
1 parent 617580b commit b1bce7c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

loader/windows/icd_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ BOOL CALLBACK khrIcdOsVendorsEnumerate(PINIT_ONCE InitOnce, PVOID Parameter, PVO
273273
}
274274

275275
// Add adapters according to DXGI's preference order
276-
HMODULE hDXGI = LoadLibrary("dxgi.dll");
276+
HMODULE hDXGI = LoadLibraryA("dxgi.dll");
277277
if (hDXGI)
278278
{
279279
IDXGIFactory* pFactory = NULL;

loader/windows/icd_windows_apppackage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool khrIcdOsVendorsEnumerateAppPackage(void)
3939
WCHAR *buffer = NULL;
4040
PWSTR *packages = NULL;
4141

42-
HMODULE h = LoadLibrary("kernel32.dll");
42+
HMODULE h = LoadLibraryA("kernel32.dll");
4343
if (h == NULL)
4444
return ret;
4545

loader/windows/icd_windows_dxgk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool khrIcdOsVendorsEnumerateDXGK(void)
3535
int result = 0;
3636

3737
// Get handle to GDI Runtime
38-
HMODULE h = LoadLibrary("gdi32.dll");
38+
HMODULE h = LoadLibraryA("gdi32.dll");
3939
if (h == NULL)
4040
return ret;
4141

0 commit comments

Comments
 (0)