wbemprox: Report the real OS version.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50580 Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e3772c917e
commit
ba06f7a541
|
@ -3514,13 +3514,13 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
|
||||||
{
|
{
|
||||||
struct record_operatingsystem *rec;
|
struct record_operatingsystem *rec;
|
||||||
enum fill_status status = FILL_STATUS_UNFILTERED;
|
enum fill_status status = FILL_STATUS_UNFILTERED;
|
||||||
OSVERSIONINFOEXW ver;
|
RTL_OSVERSIONINFOEXW ver;
|
||||||
UINT row = 0;
|
UINT row = 0;
|
||||||
|
|
||||||
if (!resize_table( table, 1, sizeof(*rec) )) return FILL_STATUS_FAILED;
|
if (!resize_table( table, 1, sizeof(*rec) )) return FILL_STATUS_FAILED;
|
||||||
|
|
||||||
ver.dwOSVersionInfoSize = sizeof(ver);
|
ver.dwOSVersionInfoSize = sizeof(ver);
|
||||||
GetVersionExW( (OSVERSIONINFOW *)&ver );
|
RtlGetVersion( &ver );
|
||||||
|
|
||||||
rec = (struct record_operatingsystem *)table->data;
|
rec = (struct record_operatingsystem *)table->data;
|
||||||
rec->buildnumber = get_osbuildnumber( &ver );
|
rec->buildnumber = get_osbuildnumber( &ver );
|
||||||
|
|
Loading…
Reference in New Issue