[PATCH v2] winedbg: Use RtlGetVersion to fix displayed Windows version on Win8.1 or 10 prefix.
16 Apr
2020
16 Apr
'20
7:13 p.m.
Signed-off-by: Brendan Shanks <bshanks(a)codeweavers.com> --- 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++) { -- 2.25.3
2157
Age (days ago)
2157
Last active (days ago)
0 comments
1 participants
participants (1)
-
Brendan Shanks