From ab8237c8c58721c72c6169c12e72d1e8edefc7ae Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 30 Dec 2013 18:20:54 +0900 Subject: [PATCH] wiaservc: Remove unused IUnknown *outer parameter from object constructor. --- dlls/wiaservc/factory.c | 2 +- dlls/wiaservc/wiadevmgr.c | 4 ++-- dlls/wiaservc/wiaservc_private.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wiaservc/factory.c b/dlls/wiaservc/factory.c index a80b83091f4..c76a3632a97 100644 --- a/dlls/wiaservc/factory.c +++ b/dlls/wiaservc/factory.c @@ -77,7 +77,7 @@ WIASERVC_IClassFactory_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pUnkOuter, if (pUnkOuter) return CLASS_E_NOAGGREGATION; - res = wiadevmgr_Constructor(pUnkOuter, (LPVOID*) &punk); + res = wiadevmgr_Constructor((LPVOID*) &punk); if (FAILED(res)) return res; diff --git a/dlls/wiaservc/wiadevmgr.c b/dlls/wiaservc/wiadevmgr.c index fea4e945374..2f0907b14a8 100644 --- a/dlls/wiaservc/wiadevmgr.c +++ b/dlls/wiaservc/wiadevmgr.c @@ -164,10 +164,10 @@ static const IWiaDevMgrVtbl WIASERVC_IWiaDevMgr_Vtbl = wiadevmgr_AddDeviceDlg }; -HRESULT wiadevmgr_Constructor(IUnknown *pUnkOuter, LPVOID *ppObj) +HRESULT wiadevmgr_Constructor(LPVOID *ppObj) { wiadevmgr *This; - TRACE("(%p,%p)\n", pUnkOuter, ppObj); + TRACE("(%p)\n", ppObj); This = HeapAlloc(GetProcessHeap(), 0, sizeof(wiadevmgr)); if (This) { diff --git a/dlls/wiaservc/wiaservc_private.h b/dlls/wiaservc/wiaservc_private.h index 51259375d2e..b7faf89eba3 100644 --- a/dlls/wiaservc/wiaservc_private.h +++ b/dlls/wiaservc/wiaservc_private.h @@ -34,7 +34,7 @@ typedef struct LONG ref; } wiadevmgr; -HRESULT wiadevmgr_Constructor(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN; +HRESULT wiadevmgr_Constructor(LPVOID *ppObj) DECLSPEC_HIDDEN; /* Little helper functions */ static inline char *