mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
Return a cloned PIDL by SHBrowseForFolder to avoid heap corruption.
This commit is contained in:
parent
94e5f01275
commit
15934680f7
1 changed files with 1 additions and 2 deletions
|
@ -521,6 +521,7 @@ static BOOL BrsFolder_OnCommand( browse_info *info, UINT id )
|
|||
switch (id)
|
||||
{
|
||||
case IDOK:
|
||||
info->pidlRet = ILClone(info->pidlRet); /* The original pidl will be free'd. */
|
||||
pdump( info->pidlRet );
|
||||
if (lpBrowseInfo->pszDisplayName)
|
||||
SHGetPathFromIDListW( info->pidlRet, lpBrowseInfo->pszDisplayName );
|
||||
|
@ -664,8 +665,6 @@ LPITEMIDLIST WINAPI SHBrowseForFolderW (LPBROWSEINFOW lpbi)
|
|||
browse_info info;
|
||||
DWORD r;
|
||||
|
||||
ERR("%p\n", lpbi);
|
||||
|
||||
info.hWnd = 0;
|
||||
info.pidlRet = NULL;
|
||||
info.lpBrowseInfo = lpbi;
|
||||
|
|
Loading…
Reference in a new issue