Commit 04714838 authored by Wolfgang Schwotzer's avatar Wolfgang Schwotzer Committed by Alexandre Julliard

SHBrowseForFolder: support lpBrowseInfo->pszDisplayName being NULL.

parent 5150b37a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment