WineHQ
Bug Tracking Database – Bug 35354

 Bugzilla

 

Last modified: 2014-01-17 13:58:23 UTC  

PSO2 Tweaker needs Win32_OperatingSystem WMI class 'Name' property

Bug 35354 - PSO2 Tweaker needs Win32_OperatingSystem WMI class 'Name' property
PSO2 Tweaker needs Win32_OperatingSystem WMI class 'Name' property
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: wmi&wbemprox
1.7.10
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
http://arks-layer.com/tweaker/PSO2%20...
: dotnet, download
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-01-09 16:56 UTC by Anastasius Focht
Modified: 2014-01-17 13:58 UTC (History)
0 users

See Also:
Regression SHA1:
Fixed by SHA1: a1d8886f6ad760caa338e388f0d233bcefa2381e
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anastasius Focht 2014-01-09 16:56:56 UTC
Hello folks,

a user in #winehq reported problems with this app.

Prerequisite: 'winetricks -q dotnet40' in 32-bit WINEPREFIX

It shows a black user interface on startup.

--- snip ---
...
002a:trace:wbemprox:class_object_Get 0x6ac2d78, L"__PATH", 00000000, 0x33e3f8, 0x33e480, 0x33e47c
...
002a:Call oleaut32.VariantClear(0033e43c) ret=79257b69
002a:trace:variant:VariantClear (0x33e43c->(VT_EMPTY))
002a:Ret  oleaut32.VariantClear() retval=00000000 ret=79257b69
002a:trace:wbemprox:class_object_Get 0x6ac2d78, L"Name", 00000000, 0x33e43c, 0x1187f04, 0x1187f08
002a:Call KERNEL32.GetLastError() ret=79162510
002a:Ret  KERNEL32.GetLastError() retval=00000000 ret=79162510
002a:Call oleaut32.VariantClear(0033e43c) ret=79257b69
002a:trace:variant:VariantClear (0x33e43c->(VT_EMPTY))
002a:Ret  oleaut32.VariantClear() retval=00000000 ret=79257b69 
...
002a:fixme:wmiutils:status_code_GetErrorCodeText 0x6ac46f8, 0x80041002, 0x0000, 0x00000001, 0x33e40c
002a:Call oleaut32.SysAllocString(0033e348 L"Error code: 0x80041002") ret=7c8633fe
002a:trace:ole:SysAllocStringLen L"Error code: 0x80041002"  
--- snip ---

Managed backtrace:

--- snip ---
0033e45c 7b83a913 [HelperMethodFrame: 0033e45c] 
0033e4ac 05bc7061 System.Management.ManagementException.ThrowWithExtendedInfo(System.Management.ManagementStatus)
0033e4ec 05bc6f68 System.Management.PropertyData.RefreshPropertyInfo()
0033e4f8 05bc6eca System.Management.PropertyDataCollection.get_Item(System.String)
0033e50c 05accc16 Microsoft.VisualBasic.Devices.ComputerInfo.get_OSFullName()
0033e53c 05467792 ..(System.Object, System.EventArgs)
0033eb34 0037a32d [MulticastFrame: 0033eb34] System.EventHandler.Invoke(System.Object, System.EventArgs)
0033eb48 05463e1f System.Windows.Forms.Form.OnLoad(System.EventArgs)
0033eb78 05463c6e DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(System.EventArgs)
0033eb84 05463b1e System.Windows.Forms.Form.OnCreateControl()
0033eb90 04461597 System.Windows.Forms.Control.CreateControl(Boolean)
0033ebc8 044613e7 System.Windows.Forms.Control.CreateControl()
0033ebdc 04e7607f System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
0033ec18 044689f3 System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
0033ec1c 04e7458b [InlinedCallFrame: 0033ec1c] 
0033ec68 04e7458b System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
0033ec74 04e74518 System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
0033ec7c 04f7b82c System.Windows.Forms.Form.WmShowWindow(System.Windows.Forms.Message ByRef)
0033ec8c 04f78369 System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
0033eca0 04f78069 DevComponents.DotNetBar.Office2007RibbonForm.WndProc(System.Windows.Forms.Message ByRef) 
...
--- snip ---

Winedbg session:

--- snip ---
...

Wine-dbg>bt
Backtrace:
=>0 0x7c81b3aa class_object_Get(iface=0x6f4ccd8, wszName="__GENUS", lFlags=0, pVal=0x33e444, pType=0x33e4c8, plFlavor=0x33e4c4) [/home/focht/projects/wine/wine-git/dlls/wbemprox/class.c:385] in wbemprox (0x0033e3e0)

Wine-dbg>bt
Backtrace:
=>0 0x7c81b3aa class_object_Get(iface=0x6f4ccd8, wszName="__PATH", lFlags=0, pVal=0x33e428, pType=0x33e4b0, plFlavor=0x33e4ac) [/home/focht/projects/wine/wine-git/dlls/wbemprox/class.c:385] in wbemprox (0x0033e3c4)
  1 0x07dc2eef (0x0033e464)
  2 0x07dc6ae4 (0x0033e490)

Wine-dbg>bt
Backtrace:
=>0 0x7c534abd get_propval+0x1a(view=0x6f58728, index=0, name="Name", ret=0x33e46c, type=0x11882fc, flavor=0x1188300) [/home/focht/projects/wine/wine-git/dlls/wbemprox/query.c:654] in wbemprox (0x0033e388)
  1 0x7c52f4fd class_object_Get+0x152(iface=0x6f58278, wszName="Name", lFlags=0, pVal=0x33e46c, pType=0x11882fc, plFlavor=0x1188300) [/home/focht/projects/wine/wine-git/dlls/wbemprox/class.c:399] in wbemprox (0x0033e3e8)
  2 0x07dd19ab in wminet_utils (+0x19aa) (0x0033e408)
  3 0x07dc2eef (0x0033e4a8)

Wine-dbg>info locals
0x7c52f460 class_object_Get+0xb6: (0033e3e8)
	IWbemClassObject* iface=0x6f58278 (parameter [EBP+8])
	LPCWSTR wszName="Name" (parameter [EBP+12])
	LONG lFlags=0 (parameter [EBP+16])
	VARIANT* pVal=0x33e46c (parameter [EBP+20])
	CIMTYPE* pType=0x11882fc (parameter [EBP+24])
	LONG* plFlavor=0x1188300 (parameter [EBP+28])
	struct class_object* co=0x6f58278 (local [ESP+76])
	struct enum_class_object* ec=0x6f41b10 (local [ESP+72])

Wine-dbg>p *co
{IWbemClassObject_iface={lpVtbl=0x7c54abc0}, refs=0x2, name="Win32_OperatingSystem", iter=0x6f41b10, index=0, index_method=0, index_property=0, record=(nil)}

Wine-dbg>s

get_propval () at /home/focht/projects/wine/wine-git/dlls/wbemprox/query.c:657
657	    hr = get_column_index( view->table, name, &column );
Wine-dbg>n

658	    if (hr != S_OK || is_method( view->table, column )) return WBEM_E_NOT_FOUND;

Wine-dbg>p hr
0x80041017 
--- snip ---

Application log file:

--- snip ---
1/9/2014 11:51:36 PM: DEBUG - ----------------------------------------
1/9/2014 11:51:36 PM: DEBUG - Program opening, running diagnostics...
1/9/2014 11:51:36 PM: DEBUG - Error code: 0x80041002
1/9/2014 11:51:36 PM ERROR - Error code: 0x80041002
--- snip ---

MSDN: http://msdn.microsoft.com/en-us/library/aa394239%28v=vs.85%29.aspx

--- quote ---
...
Name

    Data type: string
    Access type: Read-only

    Operating system instance within a computer system.
--- snip ---

NOTE: Adding this property doesn't fix the black user interface, that seems to be a different bug (skinning?).

$ sha1sum PSO2\ Tweaker.exe 
48306cc4117eb72189b10ba886ff22afbd923214  PSO2 Tweaker.exe

$ du -sh PSO2\ Tweaker.exe 
3.0M	PSO2 Tweaker.exe

$ wine --version
wine-1.7.10-298-g9a14caa

Regards
Comment 1 Anastasius Focht 2014-01-10 16:26:59 UTC
Hello folks,

this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/a1d8886f6ad760caa338e388f0d233bcefa2381e

Thanks Hans

Application 'logfile.txt' with OS info queried using WMI:

--- snip ---
...
1/10/2014 11:24:30 PM: DEBUG - ----------------------------------------
1/10/2014 11:24:30 PM: DEBUG - Program opening, running diagnostics...
1/10/2014 11:24:30 PM: DEBUG - Current OS Full name: Microsoft Windows XP Professional
1/10/2014 11:24:30 PM: DEBUG - Current OS Version: 5.1.2600.196608
1/10/2014 11:24:30 PM: DEBUG - Is the current OS 64-bit? False
1/10/2014 11:24:30 PM: DEBUG - Directory program is running in: Z:\home\focht\Downloads
1/10/2014 11:24:30 PM: DEBUG - Selected PSO2 win32 Directory: C:\windows
1/10/2014 11:24:30 PM: DEBUG - Is Unrar Available: False
1/10/2014 11:24:30 PM: DEBUG - Is 7zip available: False
1/10/2014 11:24:30 PM: DEBUG - ----------------------------------------
1/10/2014 11:24:30 PM Program opened successfully! Version 2.6.8.4 [OK!]
...
--- snip ---

Regards
Comment 2 Alexandre Julliard 2014-01-17 13:58:23 UTC
Closing bugs fixed in 1.7.11.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers