http://bugs.winehq.org/show_bug.cgi?id=35945
Bug ID: 35945 Summary: WM_NOTIFY (LVN_GETDISPINFO) message sent to destroyed owner-data list view Product: Wine Version: 1.6.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: martin@winscp.net
The default message handler for WM_DESTROY for list view with LVS_OWNERDATA sends WM_NOTIFY (LVN_GETDISPINFO) message to the control. This does not happen on Windows (tested on XP, Vista, 7 and 8).
This causes crash in WinSCP application as objects that are released on WM_DESTROY are accessed in WM_NOTIFY (LVN_GETDISPINFO) handler.
I'm attaching simple test application that show this. Press "Destroy view" button.
On Windows, you will see, in the log view on the left side:
Message [0002] - WM_DESTROY Destroyed Message [000E] - WM_GETTEXTLENGTH Message [0082] - WM_NCDESTROY
On Wine:
Message [0002] - WM_DESTROY Destroyed Message [000E] - WM_GETTEXTLENGTH Message [004E] - WM_NOTIFY WM_NOTIFY after WM_DESTROY Message [1004] Message [0082] - WM_NCDESTROY