Brendan Shanks : winedbg: Use RtlGetVersion to fix displayed Windows version on Win8.1 or 10 prefix.

Alexandre Julliard julliard at winehq.org
Thu Apr 16 16:45:15 CDT 2020


Module: wine
Branch: master
Commit: c18152630362c1bff1813fe8ad5c75ffb8dbb7cf
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c18152630362c1bff1813fe8ad5c75ffb8dbb7cf

Author: Brendan Shanks <bshanks at codeweavers.com>
Date:   Thu Apr 16 11:13:27 2020 -0700

winedbg: Use RtlGetVersion to fix displayed Windows version on Win8.1 or 10 prefix.

Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/tgt_active.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c
index 2b38ce95de..91dea2f9d8 100644
--- a/programs/winedbg/tgt_active.c
+++ b/programs/winedbg/tgt_active.c
@@ -728,11 +728,11 @@ version_table[] =
 
 static const char *get_windows_version(void)
 {
-    OSVERSIONINFOEXW info = { sizeof(OSVERSIONINFOEXW) };
+    RTL_OSVERSIONINFOEXW info = { sizeof(RTL_OSVERSIONINFOEXW) };
     static char str[64];
     int i;
 
-    GetVersionExW( (OSVERSIONINFOW *)&info );
+    RtlGetVersion( &info );
 
     for (i = 0; i < ARRAY_SIZE(version_table); i++)
     {




More information about the wine-cvs mailing list