http://bugs.winehq.com/show_bug.cgi?id=1848
Summary: User32 - TrackPopupMenu returns wrong results Product: Wine Version: unspecified Platform: PC URL: http://www.apis.de OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-gui AssignedTo: wine-bugs@winehq.com ReportedBy: andy@rosen-berg.de
Within Windows TrackPopupMenu returns true, if the user clicks outside of the menu (the menu disappears - menu is being canceled). With WINE the TrackPopupMenu returns false in such a case, which should indicate the API call has failed (which hasn't). Calling GetLastError gives you a weird error (usually access denied). The problem lies in controls/menu.c. It should only return false, if the wine server call failed.