Commit 2a2cd4db authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Fix an IE crash and make the "Create Folder" functionality in

Favorites work.
parent 00d0406c
......@@ -307,6 +307,7 @@ static BOOL DoPaste(
#endif
return bSuccess;
}
/**************************************************************************
* ISVBgCm_fnInvokeCommand()
*/
......@@ -317,8 +318,8 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
ICOM_THIS(BgCmImpl, iface);
LPSHELLBROWSER lpSB;
LPSHELLVIEW lpSV;
HWND hWndSV;
LPSHELLVIEW lpSV = NULL;
HWND hWndSV = 0;
TRACE("(%p)->(invcom=%p verb=%p wnd=%p)\n",This,lpcmi,lpcmi->lpVerb, lpcmi->hwnd);
......@@ -331,15 +332,13 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
}
}
if(lpSV)
{
if(HIWORD(lpcmi->lpVerb))
{
TRACE("%s\n",lpcmi->lpVerb);
if (! strcmp(lpcmi->lpVerb,CMDSTR_NEWFOLDERA))
{
if(lpSV) DoNewFolder(iface, lpSV);
DoNewFolder(iface, lpSV);
}
else if (! strcmp(lpcmi->lpVerb,CMDSTR_VIEWLISTA))
{
......@@ -371,8 +370,9 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
}
}
if (lpSV)
IShellView_Release(lpSV); /* QueryActiveShellView does AddRef*/
}
return NOERROR;
}
......
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