SHBrowseForFolder: support lpBrowseInfo->pszDisplayName being NULL.
This commit is contained in:
parent
5150b37a00
commit
0471483851
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue