aboutsummaryrefslogtreecommitdiff
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-29 16:54:39 +0300
commitc4476f695291a2d7376d5fa406d32e354f858858 (patch)
tree8345f4b282546600f95af09485bc1f67ee874d29
parentliblzma: Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR. (diff)
downloadxz-c4476f695291a2d7376d5fa406d32e354f858858.tar.xz
tuklib_physmem: Fix Unicode builds on Windows.
Thanks to ArSaCiA Game.
-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(