http://bugs.winehq.org/show_bug.cgi?id=5439
Rafael Bedia dcat+wine@trillinux.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dcat+wine@trillinux.org
--- Comment #3 from Rafael Bedia dcat+wine@trillinux.org 2007-10-28 23:07:07 --- There is a patch for Shareaza that fixes this bug. (http://sourceforge.net/tracker/index.php?func=detail&aid=1821020&gro...) But in case it doesn't get committed or other programs have this same problem I'll try to explain my understanding of the bug.
In some cases when Shareaza asks for the menu to be closed it uses PostMessage( WM_CANCELMODE, 0, 0 ) and things work as they are supposed to. But in 3 places Shareaza uses SendMessage( WM_CANCELMODE, 0, 0 ) instead to close the menu. Windows has no trouble with this second method but wine does. I did some debugging (but I'm pretty new to wine) and found that wine doesn't seem to be "seeing" the WM_CANCELMODE message when SendMessage is used. wine's implementation of EndMenu() uses PostMessage( WM_CANCELMODE, 0, 0 ) and changing Shareaza to send that message, as the patch above does, fixes things in wine.
Hope that helps.