http://bugs.winehq.org/show_bug.cgi?id=21099
Summary: Please fix unimplemented GetGuiResources (dont return 0) Product: Wine Version: 1.1.35 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: sbastig@gmx.net
Created an attachment (id=25320) --> (http://bugs.winehq.org/attachment.cgi?id=25320) Patch to return 1 instead of 0
Remarks A process without a graphical user interface does not use GUI resources, therefore, GetGuiResources will return zero.
GR_GDIOBJECTS 0 -- Return the count of GDI objects. GR_GDIOBJECTS_PEAK 2 -- Return the peak count of GDI objects. (Win 7 Only) ...
http://msdn.microsoft.com/en-us/library/ms683192%28VS.85%29.aspx
As this function is not implemented for the time being it might be usefull to return 1 or a value greater than 0.
http://bugs.winehq.org/show_bug.cgi?id=21099
LanoxxthShaddow sbastig@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Difficulty|--- |Minutes
http://bugs.winehq.org/show_bug.cgi?id=21099
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2009-12-20 18:16:30 --- Is there a real application that depends on it?
http://bugs.winehq.org/show_bug.cgi?id=21099
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Please fix unimplemented |Please fix unimplemented |GetGuiResources (dont |GetGuiResources |return 0) | Difficulty|Minutes |---
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2009-12-20 22:38:12 ---
From the link you provided:
If the function fails, the return value is zero. To get extended error information, call GetLastError.
On Wine function fails and last error is set to ERROR_CALL_NOT_IMPLEMENTED. Seems like a bug in your program.
However function is still not implemented. But you'll have to provide a real app that uses this.
http://bugs.winehq.org/show_bug.cgi?id=21099
--- Comment #3 from LanoxxthShaddow sbastig@gmx.net 2009-12-21 05:36:55 --- Hmm, I thought yesterday that thunderbird doenst work due to this function. But today I got it to work somehow. So maybe it was some other problem. Anyway I always got:
fixme:resource:GetGuiResources (0xffffffff,0): stub
When starting Thunderbird 3.0 -- however since it works now you may also close the bug as invalid. sorry for the trouble.
http://bugs.winehq.org/show_bug.cgi?id=21099
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2009-12-21 05:38:52 --- (In reply to comment #3)
Hmm, I thought yesterday that thunderbird doenst work due to this function. But today I got it to work somehow. So maybe it was some other problem. Anyway I always got:
fixme:resource:GetGuiResources (0xffffffff,0): stub
Fixmes don't always cause troubles.
When starting Thunderbird 3.0 -- however since it works now you may also close the bug as invalid. sorry for the trouble.
Ok.
http://bugs.winehq.org/show_bug.cgi?id=21099
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com 2009-12-21 05:39:02 --- Closing.