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

Alexandre Julliard julliard at winehq.org
Mon Jul 4 09:54:40 CDT 2016


Module: wine
Branch: master
Commit: 14d3dfde67705f09d2c88013c97bd6ca45fff3de
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14d3dfde67705f09d2c88013c97bd6ca45fff3de

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul  1 10:27:53 2016 +0200

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

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }




More information about the wine-cvs mailing list