aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-09-28 12:20:41 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-09-28 12:20:41 +0300
commita61d32172789735350a941e23baf6b587c49e5d9 (patch)
treeaf8316cf686e8f23b5371ef07576ccbb13a21b6c /src
parentTests: Add test_memlimit.c to test restarting after LZMA_MEMLIMIT_ERROR. (diff)
downloadxz-a61d32172789735350a941e23baf6b587c49e5d9.tar.xz
tuklib_physmem: Fix Unicode builds on Windows.
Thanks to ArSaCiA Game.
Diffstat (limited to 'src')
-rw-r--r--src/common/tuklib_physmem.c2
1 files changed, 1 insertions, 1 deletions
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(