regedit: Fix item text reading in regedit
00cpxxx at gmail.com
Thu Apr 26 21:51:08 CDT 2012
The macro ListView_GetItemTextW takes the count of WCHAR as parameter,
not the count of WCHAR * sizeof(WCHAR). This leads to memory
corruption and random segfaults. The attached patch pass the correct
value and also simplify the item == 0 case and avoid double multiply
This problem currently is rare because it only happens with strings >
63 bytes since the current start allocation value is 128.
Fixes bug http://bugs.winehq.org/show_bug.cgi?id=22060
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1172 bytes
Desc: not available
More information about the wine-patches