mirror of
https://github.com/encounter/SDL.git
synced 2025-12-13 15:16:13 +00:00
consistently use TEXT() macro with LoadLibrary() and GetModuleHandle()
cf. bug #5435.
This commit is contained in:
@@ -1250,7 +1250,7 @@ struct SDL_WIN_OSVERSIONINFOW {
|
||||
static SDL_bool
|
||||
IsWin10FCUorNewer(void)
|
||||
{
|
||||
HMODULE handle = GetModuleHandleW(L"ntdll.dll");
|
||||
HMODULE handle = GetModuleHandle(TEXT("ntdll.dll"));
|
||||
if (handle) {
|
||||
typedef LONG(WINAPI* RtlGetVersionPtr)(struct SDL_WIN_OSVERSIONINFOW*);
|
||||
RtlGetVersionPtr getVersionPtr = (RtlGetVersionPtr)GetProcAddress(handle, "RtlGetVersion");
|
||||
|
||||
@@ -798,7 +798,7 @@ WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||
}
|
||||
|
||||
/* If we cannot load comctl32.dll use the old messagebox! */
|
||||
hComctl32 = LoadLibrary(TEXT("Comctl32.dll"));
|
||||
hComctl32 = LoadLibrary(TEXT("comctl32.dll"));
|
||||
if (hComctl32 == NULL) {
|
||||
return WIN_ShowOldMessageBox(messageboxdata, buttonid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user