SHBrowseForFolder: support lpBrowseInfo->pszDisplayName being NULL.

This commit is contained in:
Wolfgang Schwotzer 2004-04-19 19:25:56 +00:00 committed by Alexandre Julliard
parent 5150b37a00
commit 0471483851
1 changed files with 2 additions and 1 deletions

View File

@ -391,7 +391,8 @@ static INT_PTR CALLBACK BrsFolderDlgProc(HWND hWnd, UINT msg, WPARAM wParam,
switch (wParam)
{ case IDOK:
pdump ( pidlRet );
SHGetPathFromIDListW(pidlRet, lpBrowseInfo->pszDisplayName);
if (lpBrowseInfo->pszDisplayName)
SHGetPathFromIDListW(pidlRet, lpBrowseInfo->pszDisplayName);
EndDialog(hWnd, (DWORD) ILClone(pidlRet));
return TRUE;