tuklib_physmem: Fix Unicode builds on Windows.

Thanks to ArSaCiA Game.
This commit is contained in:
Lasse Collin 2022-09-28 12:20:41 +03:00
parent 976f897bbb
commit c4476f6952
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ tuklib_physmem(void)
// supports reporting values greater than 4 GiB. To keep the // supports reporting values greater than 4 GiB. To keep the
// code working also on older Windows versions, use // code working also on older Windows versions, use
// GlobalMemoryStatusEx() conditionally. // GlobalMemoryStatusEx() conditionally.
HMODULE kernel32 = GetModuleHandle("kernel32.dll"); HMODULE kernel32 = GetModuleHandle(TEXT("kernel32.dll"));
if (kernel32 != NULL) { if (kernel32 != NULL) {
typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX); typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX);
gmse_type gmse = (gmse_type)GetProcAddress( gmse_type gmse = (gmse_type)GetProcAddress(