If ICommDlgBrowser_OnDefaultCommand returns anything other than S_OK
then we should call the default handler.
This commit is contained in:
parent
ea84f49393
commit
52cf1992ea
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue