espelhamento de
https://git.tukaani.org/xz.git
sincronizado 2026-11-04 13:24:55 +00:00
tuklib_physmem: Hopefully silence a warning on Windows.
Esse commit está contido em:
pai
491acc406e
commit
5daae12391
@ -86,7 +86,8 @@ tuklib_physmem(void)
|
|||||||
// GlobalMemoryStatusEx() conditionally.
|
// GlobalMemoryStatusEx() conditionally.
|
||||||
HMODULE kernel32 = GetModuleHandle("kernel32.dll");
|
HMODULE kernel32 = GetModuleHandle("kernel32.dll");
|
||||||
if (kernel32 != NULL) {
|
if (kernel32 != NULL) {
|
||||||
BOOL (WINAPI *gmse)(LPMEMORYSTATUSEX) = GetProcAddress(
|
typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX);
|
||||||
|
gmse_type gmse = (gmse_type)GetProcAddress(
|
||||||
kernel32, "GlobalMemoryStatusEx");
|
kernel32, "GlobalMemoryStatusEx");
|
||||||
if (gmse != NULL) {
|
if (gmse != NULL) {
|
||||||
MEMORYSTATUSEX meminfo;
|
MEMORYSTATUSEX meminfo;
|
||||||
|
|||||||
Carregando…
x
Referência em uma nova issue
Block a user