[Bug 17563] New: Crash when using TTM_GETTEXT + LPSTR_CALLBACK
http://bugs.winehq.org/show_bug.cgi?id=17563 Summary: Crash when using TTM_GETTEXT + LPSTR_CALLBACK Product: Wine Version: unspecified Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: gamezelda2(a)gmail.com Created an attachment (id=19718) --> (http://bugs.winehq.org/attachment.cgi?id=19718) Test application: Pressing the button crashes the program under Wine (the text shows correctly if you go over the button). Source included. Any program crashes when the message TTM_GETTEXT is sent to a ToolTip that has lpszText set to LPSTR_CALLBACK. The problem seems to be in dlls/comctl32/tooltips.c, in the functions TOOLTIPS_GetTextA and TOOLTIPS_GetTextW. The crash happens when Wine tries to copy lpszText, which is 0xFFFFFFFF. Test application included. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 --- Comment #1 from GameZelda <gamezelda2(a)gmail.com> 2009-02-28 16:21:33 --- It seems to work replacing the very last part of TOOLTIPS_GetTextA and TOOLTIPS_GetTextW with: --- TOOLTIPS_GetTipText(hwnd, infoPtr, nTool); WideCharToMultiByte(CP_ACP, 0, infoPtr->szTipText, -1, lpToolInfo->lpszText, INFOTIPSIZE, NULL, NULL); return 0; } --- and --- TOOLTIPS_GetTipText(hwnd, infoPtr, nTool); strcpyW (lpToolInfo->lpszText, infoPtr->szTipText); return 0; } -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|comdlg32 |comctl32 Keywords| |source OS/Version|All |other Platform|All |Other --- Comment #2 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-02-28 21:59:16 --- Wine version? OS? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 --- Comment #3 from GameZelda <gamezelda2(a)gmail.com> 2009-03-01 01:20:16 --- Version: Wine 1.1.16 OS: Linux, but from what I've seen in the code, it will crash on any OS. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch, testcase --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2009-03-01 01:24:47 --- You should convert that testcase to a conformance test and submit it to wine-patches(a)winehq.org. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Linux Version|unspecified |1.1.16 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #5 from Nikolay Sivov <bunglehead(a)gmail.com> 2009-05-24 05:02:49 --- Confirming. I'll try to look at it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs(a)winehq.org |bunglehead(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 --- Comment #6 from Nikolay Sivov <bunglehead(a)gmail.com> 2009-05-27 14:45:14 --- Fix sent for that bug. You need both patches to test: http://www.winehq.org/pipermail/wine-patches/2009-May/073469.html http://www.winehq.org/pipermail/wine-patches/2009-May/073470.html -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Nikolay Sivov <bunglehead(a)gmail.com> 2009-05-28 09:53:31 --- Fixed by commit: http://source.winehq.org/git/wine.git/?a=commit;h=7d32cfef27bdb9d661cfbdc657... Reopen it if you still have a problem with callback entries. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17563 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Alexandre Julliard <julliard(a)winehq.org> 2009-06-05 12:45:06 --- Closing bugs fixed in 1.1.23. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17563 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead(a)gmail.com |wine-bugs(a)winehq.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org