Skip to content
Snippets Groups Projects
Commit 0a524a0c authored by David Hedberg's avatar David Hedberg Committed by Alexandre Julliard
Browse files

comdlg32: Set explorerbrowser's site before navigating anywhere.

parent a4d8b22f
No related branches found
No related tags found
No related merge requests found
......@@ -281,14 +281,14 @@ static HRESULT init_explorerbrowser(FileDialogImpl *This)
IExplorerBrowser_SetFolderSettings(This->peb, &fos);
/* Browse somewhere */
psi_folder = This->psi_setfolder ? This->psi_setfolder : This->psi_defaultfolder;
IExplorerBrowser_BrowseToObject(This->peb, (IUnknown*)psi_folder, SBSP_DEFBROWSER);
hr = IUnknown_SetSite((IUnknown*)This->peb, (IUnknown*)This);
if(FAILED(hr))
ERR("SetSite (ExplorerBrowser) failed.\n");
/* Browse somewhere */
psi_folder = This->psi_setfolder ? This->psi_setfolder : This->psi_defaultfolder;
IExplorerBrowser_BrowseToObject(This->peb, (IUnknown*)psi_folder, SBSP_DEFBROWSER);
return S_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment