shell32: Pass objects instead of ifaces to helpers.
This commit is contained in:
parent
9b1fc0fd74
commit
2cf8335d70
|
@ -189,10 +189,9 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
|
||||||
* DoNewFolder
|
* DoNewFolder
|
||||||
*/
|
*/
|
||||||
static void DoNewFolder(
|
static void DoNewFolder(
|
||||||
IContextMenu2 *iface,
|
BgCmImpl *This,
|
||||||
IShellView *psv)
|
IShellView *psv)
|
||||||
{
|
{
|
||||||
BgCmImpl *This = (BgCmImpl *)iface;
|
|
||||||
ISFHelper * psfhlp;
|
ISFHelper * psfhlp;
|
||||||
WCHAR wszName[MAX_PATH];
|
WCHAR wszName[MAX_PATH];
|
||||||
|
|
||||||
|
@ -220,9 +219,8 @@ static void DoNewFolder(
|
||||||
* DoPaste
|
* DoPaste
|
||||||
*/
|
*/
|
||||||
static BOOL DoPaste(
|
static BOOL DoPaste(
|
||||||
IContextMenu2 *iface)
|
BgCmImpl *This)
|
||||||
{
|
{
|
||||||
BgCmImpl *This = (BgCmImpl *)iface;
|
|
||||||
BOOL bSuccess = FALSE;
|
BOOL bSuccess = FALSE;
|
||||||
IDataObject * pda;
|
IDataObject * pda;
|
||||||
|
|
||||||
|
@ -343,7 +341,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
|
||||||
|
|
||||||
if (! strcmp(lpcmi->lpVerb,CMDSTR_NEWFOLDERA))
|
if (! strcmp(lpcmi->lpVerb,CMDSTR_NEWFOLDERA))
|
||||||
{
|
{
|
||||||
DoNewFolder(iface, lpSV);
|
DoNewFolder(This, lpSV);
|
||||||
}
|
}
|
||||||
else if (! strcmp(lpcmi->lpVerb,CMDSTR_VIEWLISTA))
|
else if (! strcmp(lpcmi->lpVerb,CMDSTR_VIEWLISTA))
|
||||||
{
|
{
|
||||||
|
@ -367,11 +365,11 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FCIDM_SHVIEW_NEWFOLDER:
|
case FCIDM_SHVIEW_NEWFOLDER:
|
||||||
DoNewFolder(iface, lpSV);
|
DoNewFolder(This, lpSV);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FCIDM_SHVIEW_INSERT:
|
case FCIDM_SHVIEW_INSERT:
|
||||||
DoPaste(iface);
|
DoPaste(This);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FCIDM_SHVIEW_PROPERTIES:
|
case FCIDM_SHVIEW_PROPERTIES:
|
||||||
|
|
Loading…
Reference in New Issue