listview: infoPtr might be invalid after WM_NOTIFY

Michael Jung mjung at iss.tu-darmstadt.de
Tue Sep 20 10:05:27 CDT 2005


Hello Alexandre, Dimi and Phil,

This is a patch for the infoPtr problem in comctl32's listview.c. I guess it 
matches your suggestion on IRC? I've only changed the minimum necessary to 
get rid of the file dialog crash. If that's the correct approach in your 
opinion, I will continue to work on this. I will be on vacation for three 
weeks, though, starting from Friday.

Dimi, if you think this is ugly, or if you are working on a better solution, 
please do protest. 

Changelog:
	infoPtr might be invalid after a WM_NOTIFY message was sent, since the 
application might have destroyed the listview. Pass around hwnd instead and 
call GetWindowLongPtr, if we have to access the listview instance data. 
Spotted by Phil Krylov.

-- 
Michael Jung
mjung at iss.tu-darmstadt.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlls_comctl32_listview_c.diff
Type: text/x-diff
Size: 13852 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050920/3c5deddc/dlls_comctl32_listview_c-0001.diff


More information about the wine-patches mailing list