pstorec: Get rid of a cast from a COM object to an iface.

Michael Stefaniuc mstefani at redhat.de
Fri Jul 1 03:27:53 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/pstorec/pstorec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/pstorec/pstorec.c b/dlls/pstorec/pstorec.c
index b100a08..269ebca 100644
--- a/dlls/pstorec/pstorec.c
+++ b/dlls/pstorec/pstorec.c
@@ -364,7 +364,7 @@ HRESULT WINAPI PStoreCreateInstance( IPStore** ppProvider,
     ips->IPStore_iface.lpVtbl = &pstores_vtbl;
     ips->ref = 1;
 
-    *ppProvider = (IPStore*) ips;
+    *ppProvider = &ips->IPStore_iface;
 
     return S_OK;
 }
-- 
2.5.5



More information about the wine-patches mailing list