mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
consistently use TEXT() macro with LoadLibrary() and GetModuleHandle()
cf. bug #5435.
This commit is contained in:
@@ -215,7 +215,7 @@ SDL_CreateCond(void)
|
||||
/* Link statically on this platform */
|
||||
impl = &SDL_cond_impl_srw;
|
||||
#else
|
||||
HMODULE kernel32 = GetModuleHandleW(L"kernel32.dll");
|
||||
HMODULE kernel32 = GetModuleHandle(TEXT("kernel32.dll"));
|
||||
if (kernel32) {
|
||||
pWakeConditionVariable = (pfnWakeConditionVariable) GetProcAddress(kernel32, "WakeConditionVariable");
|
||||
pWakeAllConditionVariable = (pfnWakeAllConditionVariable) GetProcAddress(kernel32, "WakeAllConditionVariable");
|
||||
|
Reference in New Issue
Block a user