[Bug 7501] toolbar problem (DestroyWindow/Create)
Wine Bugs
wine-bugs at winehq.org
Wed Feb 21 00:15:09 CST 2007
http://bugs.winehq.org/show_bug.cgi?id=7501
------- Additional Comments From thestig at google.com 2007-21-02 00:15 -------
Here's what's going on:
When the button is clicked, TOOLBAR_LButtonUp() gets called and it in turn calls
SendMessageW(infoPtr->hwndNotify, WM_COMMAND, ...) which causes the
destruction/creation of the toolbar. After SendMessageW() returns, the
TOOLBAR_INFO struct infoPtr points to is no longer valid and you get the crash.
Destroying and recreating the toolbar seems like a really inefficient way to
change the state of a button. Isn't sending the TB_SETSTATE message the proper
way to do it?
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list