From 2478421d871f2f4dad3e280ffaffb3da51927ec5 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 21 Mar 2015 00:24:47 +0300 Subject: [PATCH] msi: Return interface pointer instead of impl pointer. --- dlls/msi/custom.c | 2 +- dlls/msi/database.c | 2 +- dlls/msi/package.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index 002d8619ad5..d492e19e933 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -1455,7 +1455,7 @@ HRESULT create_msi_custom_remote( IUnknown *pOuter, LPVOID *ppObj ) This->IWineMsiRemoteCustomAction_iface.lpVtbl = &msi_custom_remote_vtbl; This->refs = 1; - *ppObj = This; + *ppObj = &This->IWineMsiRemoteCustomAction_iface; return S_OK; } diff --git a/dlls/msi/database.c b/dlls/msi/database.c index e970ef6eae1..18e1445558b 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -2020,7 +2020,7 @@ HRESULT create_msi_remote_database( IUnknown *pOuter, LPVOID *ppObj ) This->database = 0; This->refs = 1; - *ppObj = This; + *ppObj = &This->IWineMsiRemoteDatabase_iface; return S_OK; } diff --git a/dlls/msi/package.c b/dlls/msi/package.c index c5a07fb383b..de50703e79d 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -2660,7 +2660,7 @@ HRESULT create_msi_remote_package( IUnknown *pOuter, LPVOID *ppObj ) This->package = 0; This->refs = 1; - *ppObj = This; + *ppObj = &This->IWineMsiRemotePackage_iface; return S_OK; }