mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
consistently use TEXT() macro with LoadLibrary() and GetModuleHandle()
cf. bug #5435.
This commit is contained in:
@@ -415,7 +415,7 @@ SDL_CreateSemaphore(Uint32 initial_value)
|
||||
* Microsoft our specific use case is legal and correct:
|
||||
* https://github.com/microsoft/STL/pull/593#issuecomment-655799859
|
||||
*/
|
||||
HMODULE synch120 = GetModuleHandleW(L"api-ms-win-core-synch-l1-2-0.dll");
|
||||
HMODULE synch120 = GetModuleHandle(TEXT("api-ms-win-core-synch-l1-2-0.dll"));
|
||||
if (synch120) {
|
||||
/* Try to load required functions provided by Win 8 or newer */
|
||||
pWaitOnAddress = (pfnWaitOnAddress) GetProcAddress(synch120, "WaitOnAddress");
|
||||
|
Reference in New Issue
Block a user