On Fri, May 06, 2005 at 03:29:06PM +0200, Michael Jung wrote:
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
And the patch? ;)
bye michael