wbemdisp: Remove unused IUnknown *outer parameter from object constructor.

This commit is contained in:
Dmitry Timoshkov 2013-12-30 18:21:31 +09:00 committed by Alexandre Julliard
parent f8d79c83b4
commit fb9e8bc94e
3 changed files with 6 additions and 9 deletions

View file

@ -250,11 +250,11 @@ static const ISWbemLocatorVtbl locator_vtbl =
locator_get_Security_
};
HRESULT SWbemLocator_create( IUnknown *unk, void **obj )
HRESULT SWbemLocator_create( void **obj )
{
struct locator *locator;
TRACE( "%p, %p\n", unk, obj );
TRACE( "%p\n", obj );
if (!(locator = heap_alloc( sizeof(*locator) ))) return E_OUTOFMEMORY;
locator->ISWbemLocator_iface.lpVtbl = &locator_vtbl;

View file

@ -80,7 +80,7 @@ static const IParseDisplayNameVtbl WinMGMTSVtbl = {
static IParseDisplayName winmgmts = { &WinMGMTSVtbl };
static HRESULT WinMGMTS_create(IUnknown *outer, void **ppv)
static HRESULT WinMGMTS_create(void **ppv)
{
*ppv = &winmgmts;
return S_OK;
@ -89,7 +89,7 @@ static HRESULT WinMGMTS_create(IUnknown *outer, void **ppv)
struct factory
{
IClassFactory IClassFactory_iface;
HRESULT (*fnCreateInstance)( IUnknown *, LPVOID * );
HRESULT (*fnCreateInstance)( LPVOID * );
};
static inline struct factory *impl_from_IClassFactory( IClassFactory *iface )
@ -131,14 +131,11 @@ static HRESULT WINAPI factory_CreateInstance( IClassFactory *iface, LPUNKNOWN ou
*obj = NULL;
if (outer) return CLASS_E_NOAGGREGATION;
hr = factory->fnCreateInstance( outer, (LPVOID *)&unk );
hr = factory->fnCreateInstance( (LPVOID *)&unk );
if (FAILED( hr ))
return hr;
hr = IUnknown_QueryInterface( unk, riid, obj );
if (FAILED( hr ))
return hr;
IUnknown_Release( unk );
return hr;
}

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
HRESULT SWbemLocator_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT SWbemLocator_create(LPVOID *) DECLSPEC_HIDDEN;
static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
static inline void *heap_alloc( size_t len )