From a61d32172789735350a941e23baf6b587c49e5d9 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 28 Sep 2022 12:20:41 +0300 Subject: tuklib_physmem: Fix Unicode builds on Windows. Thanks to ArSaCiA Game. --- src/common/tuklib_physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tuklib_physmem.c b/src/common/tuklib_physmem.c index 4053ad00..a1bccb2f 100644 --- a/src/common/tuklib_physmem.c +++ b/src/common/tuklib_physmem.c @@ -84,7 +84,7 @@ tuklib_physmem(void) // supports reporting values greater than 4 GiB. To keep the // code working also on older Windows versions, use // GlobalMemoryStatusEx() conditionally. - HMODULE kernel32 = GetModuleHandle("kernel32.dll"); + HMODULE kernel32 = GetModuleHandle(TEXT("kernel32.dll")); if (kernel32 != NULL) { typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX); gmse_type gmse = (gmse_type)GetProcAddress( -- cgit v1.2.3