summaryrefslogtreecommitdiff
path: root/src/common/tuklib_physmem.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-01-06 06:35:21 +0000
committerXin LI <delphij@FreeBSD.org>2017-01-06 06:35:21 +0000
commitd069dc06884b8b477d10333362d0ee4152ef2a19 (patch)
treeec9f4442535d84340472337754183396fceb6966 /src/common/tuklib_physmem.c
parent170a23caff3b126f7ca0a3ce1a412cbb050f2b25 (diff)
Notes
Diffstat (limited to 'src/common/tuklib_physmem.c')
-rw-r--r--src/common/tuklib_physmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tuklib_physmem.c b/src/common/tuklib_physmem.c
index cd2437d8c7d5..4053ad006a64 100644
--- a/src/common/tuklib_physmem.c
+++ b/src/common/tuklib_physmem.c
@@ -86,7 +86,8 @@ tuklib_physmem(void)
// GlobalMemoryStatusEx() conditionally.
HMODULE kernel32 = GetModuleHandle("kernel32.dll");
if (kernel32 != NULL) {
- BOOL (WINAPI *gmse)(LPMEMORYSTATUSEX) = GetProcAddress(
+ typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX);
+ gmse_type gmse = (gmse_type)GetProcAddress(
kernel32, "GlobalMemoryStatusEx");
if (gmse != NULL) {
MEMORYSTATUSEX meminfo;