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

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Brendan Shanks 2020-04-16 11:13:27 -07:00 committed by Alexandre Julliard
parent e8f16fcbcc
commit c181526303
1 changed files with 2 additions and 2 deletions

View File

@ -728,11 +728,11 @@ version_table[] =
static const char *get_windows_version(void) static const char *get_windows_version(void)
{ {
OSVERSIONINFOEXW info = { sizeof(OSVERSIONINFOEXW) }; RTL_OSVERSIONINFOEXW info = { sizeof(RTL_OSVERSIONINFOEXW) };
static char str[64]; static char str[64];
int i; int i;
GetVersionExW( (OSVERSIONINFOW *)&info ); RtlGetVersion( &info );
for (i = 0; i < ARRAY_SIZE(version_table); i++) for (i = 0; i < ARRAY_SIZE(version_table); i++)
{ {