From 1b928e8bf10ffff4ef848b9bd05597c4e530f52e Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 10 Jun 2020 23:09:11 +0700 Subject: [PATCH] #1728 Fixed x86 crash on Windows. --- src/base/kernel/Platform_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/kernel/Platform_win.cpp b/src/base/kernel/Platform_win.cpp index 018dba31..00497453 100644 --- a/src/base/kernel/Platform_win.cpp +++ b/src/base/kernel/Platform_win.cpp @@ -34,7 +34,7 @@ static inline OSVERSIONINFOEX winOsVersion() { - using RtlGetVersionFunction = NTSTATUS (*)(LPOSVERSIONINFO); + typedef NTSTATUS (NTAPI *RtlGetVersionFunction)(LPOSVERSIONINFO); OSVERSIONINFOEX result = { sizeof(OSVERSIONINFOEX), 0, 0, 0, 0, {'\0'}, 0, 0, 0, 0, 0}; HMODULE ntdll = GetModuleHandleW(L"ntdll.dll");