[Bug 35945] New: WM_NOTIFY (LVN_GETDISPINFO) message sent to destroyed owner-data list view

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 8 07:36:31 CDT 2014


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 at winehq.org
          Reporter: martin at 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

-- 
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.



More information about the wine-bugs mailing list