From d1cc88cd80bfcc5617d5e2fa790b25affe6b5f2c Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 7 Apr 2024 13:58:30 +0000 Subject: [PATCH] better user-agent git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@289 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/Util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Util.c b/Library/Util.c index 0d9d452..979eda1 100644 --- a/Library/Util.c +++ b/Library/Util.c @@ -154,7 +154,7 @@ char* __W3_Get_Platform(void) { RTL_OSVERSIONINFOEXW info; ZeroMemory(&info, sizeof(RTL_OSVERSIONINFOEXW)); info.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW); - RtlGetVersionEx(&info); + RtlGetVersion(&info); char* result = malloc(33); sprintf(result, "Windows %lu.%lu.%lu", info.dwMajorVersion, info.dwMinorVersion, info.dwBuildNumber); return result; -- 2.43.0