[PATCH 1/3] shell32: Pass objects instead of ifaces to helpers.
Michael Stefaniuc
mstefani at redhat.de
Wed Aug 31 07:14:10 CDT 2011
---
dlls/shell32/shv_bg_cmenu.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c
index 5b1b434..bd99d3a 100644
--- a/dlls/shell32/shv_bg_cmenu.c
+++ b/dlls/shell32/shv_bg_cmenu.c
@@ -189,10 +189,9 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
* DoNewFolder
*/
static void DoNewFolder(
- IContextMenu2 *iface,
+ BgCmImpl *This,
IShellView *psv)
{
- BgCmImpl *This = (BgCmImpl *)iface;
ISFHelper * psfhlp;
WCHAR wszName[MAX_PATH];
@@ -220,9 +219,8 @@ static void DoNewFolder(
* DoPaste
*/
static BOOL DoPaste(
- IContextMenu2 *iface)
+ BgCmImpl *This)
{
- BgCmImpl *This = (BgCmImpl *)iface;
BOOL bSuccess = FALSE;
IDataObject * pda;
@@ -343,7 +341,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
if (! strcmp(lpcmi->lpVerb,CMDSTR_NEWFOLDERA))
{
- DoNewFolder(iface, lpSV);
+ DoNewFolder(This, lpSV);
}
else if (! strcmp(lpcmi->lpVerb,CMDSTR_VIEWLISTA))
{
@@ -367,11 +365,11 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
break;
case FCIDM_SHVIEW_NEWFOLDER:
- DoNewFolder(iface, lpSV);
+ DoNewFolder(This, lpSV);
break;
case FCIDM_SHVIEW_INSERT:
- DoPaste(iface);
+ DoPaste(This);
break;
case FCIDM_SHVIEW_PROPERTIES:
--
1.7.4.4
More information about the wine-patches
mailing list