Skip to content

Commit

Permalink
replaces calls to LoadLibrary with explicit calls to LoadLibraryA (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug authored Apr 11, 2023
1 parent 617580b commit b1bce7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion loader/windows/icd_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion loader/windows/icd_windows_apppackage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion loader/windows/icd_windows_dxgk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b1bce7c

Please # to comment.