Commit 52cf1992 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

If ICommDlgBrowser_OnDefaultCommand returns anything other than S_OK

then we should call the default handler.
parent ea84f493
......@@ -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);
}
......
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