If ICommDlgBrowser_OnDefaultCommand returns anything other than S_OK

then we should call the default handler.
This commit is contained in:
Huw Davies 2005-04-12 10:16:35 +00:00 committed by Alexandre Julliard
parent ea84f49393
commit 52cf1992ea
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ static HRESULT OnDefaultCommand(IShellViewImpl * This)
{
TRACE("ICommDlgBrowser::OnDefaultCommand\n");
ret = ICommDlgBrowser_OnDefaultCommand(This->pCommDlgBrowser, (IShellView*)This);
TRACE("--\n");
TRACE("-- returns %08lx\n", ret);
}
return ret;
}
@ -962,7 +962,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
if (uCommand==FCIDM_SHVIEW_OPEN && IsInCommDlg(This))
{
TRACE("-- dlg: OnDefaultCommand\n");
if (FAILED(OnDefaultCommand(This)))
if (OnDefaultCommand(This) != S_OK)
{
ShellView_OpenSelectedItems(This);
}