comctl32: toolbar: make sure all TBUTTON_INFO fields are initialized when a button is added in the middle

Mikołaj Zalewski mikolaj at zalewski.pl
Tue Jan 27 14:48:26 CST 2009


  I forgot that Alloc/ReAlloc takes care of freeing the memory and, 
thus, the only case where there is a problem is TB_INSERTBUTTON when 
inserting a button in the middle (and this is were I've seen a crash). 
As other fields are also not initialized in this case (instead we use 
the values of the button that used to be in this place), I have added a 
ZeroMemory.

Mikolaj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-comctl32-toolbar-make-sure-all-TBUTTON_INFO-fields.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090127/c4d00023/attachment.bin 


More information about the wine-patches mailing list