shell32/brsfolder: returned pidl has to be cloned
Michael Jung
mjung at iss.tu-darmstadt.de
Fri May 6 11:06:25 CDT 2005
info->pidlRet points directly to a pidl stored in the treeview-item, which
will be free'd when the dialog is closed. Thus we have to clone the pidl
before. MSDN says that the caller of SHBrowseForFolder is responsible for
free'ing the returned pidl.
Changelog:
Return a cloned PIDL by SHBrowseForFolder to avoid heap corruption
Bye,
--
Michael Jung
mjung at iss.tu-darmstadt.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlls_shell32_brsfolder_c.diff
Type: text/x-diff
Size: 874 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050506/78321ea1/dlls_shell32_brsfolder_c.bin
More information about the wine-patches
mailing list