https://bugs.winehq.org/show_bug.cgi?id=50610
Bug ID: 50610 Summary: WMI 'Win32_OperatingSystem' OS caption property descriptions for Windows 8 and 8.1 are reversed Product: Wine Version: 6.1 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
spotted by Dmitry Timoshkov when looking at my test script output which tested for bug 50580
https://bugs.winehq.org/show_bug.cgi?id=50580#c5
To reproduce:
--- snip --- On Error Resume Next
strComputer = "." Set objWMIService = GetObject("winmgmts:\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48) For Each objItem in colItems Wscript.Echo "BuildNumber: " & objItem.BuildNumber Wscript.Echo "BuildType: " & objItem.BuildType Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "CSCreationClassName: " & objItem.CSCreationClassName Wscript.Echo "CSDVersion: " & objItem.CSDVersion Wscript.Echo "CSName: " & objItem.CSName Wscript.Echo "Version: " & objItem.Version Next --- snip ---
Run the script:
--- snip --- $ for ver in win8 win81 ; do \ ( \ export WINEDEBUG=-all echo "======" && \ winecfg -v $ver && \ winecfg -v | tee && \ wine cscript osversion.vbs \ ) ; done
====== win81 BuildNumber: 9600 Caption: Microsoft Windows 8 Pro CSDVersion: CSName: LINUX Version: 6.3.9600 ====== win10 BuildNumber: 17763 Caption: Microsoft Windows 10 Pro CSDVersion: CSName: LINUX Version: 10.0.17763 --- snip ---
Wine source:
https://source.winehq.org/git/wine.git/blob/433b9081ba7c862feb947400f507228e...
--- snip --- 3419 static WCHAR *get_oscaption( OSVERSIONINFOEXW *ver ) 3420 { 3421 static const WCHAR windowsW[] = L"Microsoft Windows "; 3422 static const WCHAR win2000W[] = L"2000 Professional"; 3423 static const WCHAR win2003W[] = L"Server 2003 Standard Edition"; 3424 static const WCHAR winxpW[] = L"XP Professional"; 3425 static const WCHAR winxp64W[] = L"XP Professional x64 Edition"; 3426 static const WCHAR vistaW[] = L"Vista Ultimate"; 3427 static const WCHAR win2008W[] = L"Server 2008 Standard"; 3428 static const WCHAR win7W[] = L"7 Professional"; 3429 static const WCHAR win2008r2W[] = L"Server 2008 R2 Standard"; 3430 static const WCHAR win8W[] = L"8 Pro"; 3431 static const WCHAR win81W[] = L"8.1 Pro"; 3432 static const WCHAR win10W[] = L"10 Pro"; 3433 int len = ARRAY_SIZE( windowsW ) - 1; 3434 WCHAR *ret; 3435 3436 if (!(ret = heap_alloc( len * sizeof(WCHAR) + sizeof(win2003W) ))) return NULL; 3437 memcpy( ret, windowsW, sizeof(windowsW) ); 3438 if (ver->dwMajorVersion == 10 && ver->dwMinorVersion == 0) memcpy( ret + len, win10W, sizeof(win10W) ); 3439 else if (ver->dwMajorVersion == 6 && ver->dwMinorVersion == 3) memcpy( ret + len, win8W, sizeof(win8W) ); 3440 else if (ver->dwMajorVersion == 6 && ver->dwMinorVersion == 2) memcpy( ret + len, win81W, sizeof(win81W) ); 3441 else if (ver->dwMajorVersion == 6 && ver->dwMinorVersion == 1) 3442 { 3443 if (ver->wProductType == VER_NT_WORKSTATION) memcpy( ret + len, win7W, sizeof(win7W) ); 3444 else memcpy( ret + len, win2008r2W, sizeof(win2008r2W) ); 3445 } 3446 else if (ver->dwMajorVersion == 6 && ver->dwMinorVersion == 0) 3447 { 3448 if (ver->wProductType == VER_NT_WORKSTATION) memcpy( ret + len, vistaW, sizeof(vistaW) ); 3449 else memcpy( ret + len, win2008W, sizeof(win2008W) ); 3450 } 3451 else if (ver->dwMajorVersion == 5 && ver->dwMinorVersion == 2) 3452 { 3453 if (ver->wProductType == VER_NT_WORKSTATION) memcpy( ret + len, winxp64W, sizeof(winxp64W) ); 3454 else memcpy( ret + len, win2003W, sizeof(win2003W) ); 3455 } 3456 else if (ver->dwMajorVersion == 5 && ver->dwMinorVersion == 1) memcpy( ret + len, winxpW, sizeof(winxpW) ); 3457 else memcpy( ret + len, win2000W, sizeof(win2000W) ); 3458 return ret; 3459 } --- snip ---
Line 3439 and 3440
$ wine --version wine-6.1-70-g433b9081ba7
Regards
https://bugs.winehq.org/show_bug.cgi?id=50610
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
small correction of the copy'n'paste output from bug 50580
The reversed captions:
--- snip --- ====== win8 BuildNumber: 9200 Caption: Microsoft Windows 8.1 Pro CSDVersion: CSName: LINUX Version: 6.2.9200 ====== win81 BuildNumber: 9600 Caption: Microsoft Windows 8 Pro CSDVersion: CSName: LINUX Version: 6.3.9600 --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=50610
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bdba6037d01acce3cd1ea299a88 | |59f3b99d4f520 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/bdba6037d01acce3cd1ea299a8... ("wbemprox: Fix Windows 8/8.1 caption.").
Thanks Hans
--- snip --- $ for ver in win8 win81 ; do \ ( \ export WINEDEBUG=-all echo "======" && \ winecfg -v $ver && \ winecfg -v | tee && \ wine cscript osversion.vbs \ ) ; done
====== win8 BuildNumber: 9200 Caption: Microsoft Windows 8 Pro CSDVersion: CSName: LINUX Version: 6.2.9200 ====== win81 BuildNumber: 9600 Caption: Microsoft Windows 8.1 Pro CSDVersion: CSName: LINUX Version: 6.3.9600 --- snip ---
$ wine --version wine-6.1-122-g2201ca08fb0
Regards
https://bugs.winehq.org/show_bug.cgi?id=50610
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.2.
https://bugs.winehq.org/show_bug.cgi?id=50610
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=50610
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.1.
https://bugs.winehq.org/show_bug.cgi?id=50610
Mehmet gelisin mehmetgelisin@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin@aol.com
--- Comment #5 from Mehmet gelisin mehmetgelisin@aol.com --- still getting this: http://www.compilatori.com/ 0100:trace:wbemprox:wbem_services_ExecQuery 0000000004F572B0, L"WQL", L"SELECT GUID, DeviceID FROM Win32_NetworkAdapter WHERE PhysicalAdapter = TRUE AND (PNPDeviceID LIKE "PCI\\%" OR PNPDeviceID LIKE "USB\\%" OR PNPDeviceID LIKE "SD\\%" OR PNPDeviceID http://www.wearelondonmade.com/ LIKE "XEN%\\%" OR PNPDeviceID LIKE "VMBUS\\%" OR PNPDeviceID LIKE "%BDRV\\%") AND NOT"..., 0x00000030, 0000000000000000, 000000000021CB88 0100:trace:wbemprox:grab_table returning 0000000062C9E740 http://www.jopspeech.com/ 0100:trace:wbemprox:parse_query wql_parse returned 0 0100:trace:wbemprox:fill_networkadapter created 0 rows http://joerg.li/
still getting this:
0100:trace:wbemprox:wbem_services_ExecQuery 0000000004F572B0, http://connstr.net/ L"WQL", L"SELECT GUID, DeviceID FROM Win32_NetworkAdapter WHERE PhysicalAdapter = TRUE AND (PNPDeviceID LIKE "PCI\\%" OR PNPDeviceID LIKE "USB\\%" OR PNPDeviceID LIKE "SD\\%" OR PNPDeviceID LIKE http://embermanchester.uk/ "XEN%\\%" OR PNPDeviceID LIKE "VMBUS\\%" OR PNPDeviceID LIKE "%BDRV\\%") AND NOT"..., 0x00000030, 0000000000000000, 000000000021CB88 http://www.slipstone.co.uk/ 0100:trace:wbemprox:grab_table returning 0000000062C9E740 0100:trace:wbemprox:parse_query wql_parse returned 0 0100:trace:wbemprox:fill_networkadapter created 0 rows http://www.logoarts.co.uk/
still getting this:
0100:trace:wbemprox:wbem_services_ExecQuery 0000000004F572B0, L"WQL", L"SELECT GUID, DeviceID FROM Win32_NetworkAdapter WHERE PhysicalAdapter = TRUE AND http://www.acpirateradio.co.uk/ (PNPDeviceID LIKE "PCI\\%" OR PNPDeviceID LIKE "USB\\%" OR PNPDeviceID LIKE "SD\\%" OR PNPDeviceID LIKE "XEN%\\%" OR PNPDeviceID LIKE "VMBUS\\%" OR PNPDeviceID LIKE "%BDRV\\%") AND NOT"..., 0x00000030, 0000000000000000, 000000000021CB88 0100:trace:wbemprox:grab_table returning 0000000062C9E740 0100:trace:wbemprox:parse_query wql_parse returned 0 https://waytowhatsnext.com/ 0100:trace:wbemprox:fill_networkadapter created 0 rows
still getting this:
0100:trace:wbemprox:wbem_services_ExecQuery 0000000004F572B0, L"WQL", L"SELECT GUID, DeviceID FROM Win32_NetworkAdapter WHERE PhysicalAdapter = TRUE AND https://www.webb-dev.co.uk/ (PNPDeviceID LIKE "PCI\\%" OR PNPDeviceID LIKE "USB\\%" OR PNPDeviceID LIKE "SD\\%" OR PNPDeviceID LIKE "XEN%\\%" OR PNPDeviceID LIKE "VMBUS\\%" OR PNPDeviceID LIKE "%BDRV\\%") AND NOT"..., 0x00000030, 0000000000000000, 000000000021CB88 0100:trace:wbemprox:grab_table returning 0000000062C9E740 0100:trace:wbemprox:parse_query wql_parse returned 0 0100:trace:wbemprox:fill_networkadapter created 0 rows http://www.iu-bloomington.com/
still getting this:
0100:trace:wbemprox:wbem_services_ExecQuery 0000000004F572B0, L"WQL", L"SELECT GUID, DeviceID FROM Win32_NetworkAdapter WHERE PhysicalAdapter = TRUE AND (PNPDeviceID LIKE "PCI\\%" OR PNPDeviceID LIKE "USB\\%" OR PNPDeviceID LIKE "SD\\%" OR PNPDeviceID LIKE "XEN%\\%" OR PNPDeviceID LIKE http://www-look-4.com/ "VMBUS\\%" OR PNPDeviceID LIKE "%BDRV\\%") AND NOT"..., 0x00000030, 0000000000000000, 000000000021CB88 0100:trace:wbemprox:grab_table returning 0000000062C9E740 0100:trace:wbemprox:parse_query wql_parse returned 0 0100:trace:wbemprox:fill_networkadapter created 0 rows