Michael Stefaniuc : msdaps: Avoid casts from COM object to interface.
Alexandre Julliard
julliard at winehq.org
Thu Aug 26 15:22:30 CDT 2021
Module: wine
Branch: master
Commit: e219f5cda7e39ce61d102f992d53b76a2f611ec8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e219f5cda7e39ce61d102f992d53b76a2f611ec8
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Aug 26 09:45:21 2021 +0200
msdaps: Avoid casts from COM object to interface.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msdaps/row_server.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msdaps/row_server.c b/dlls/msdaps/row_server.c
index 2b496bece20..9cc64cd0218 100644
--- a/dlls/msdaps/row_server.c
+++ b/dlls/msdaps/row_server.c
@@ -589,9 +589,9 @@ static HRESULT create_server(IUnknown *outer, const CLSID *class, void **obj)
server->class = *class;
server->inner_unk = NULL;
if(IsEqualGUID(class, &CLSID_wine_row_server))
- create_row_marshal((IUnknown*)server, (void**)&server->marshal);
+ create_row_marshal((IUnknown*)&server->IWineRowServer_iface, (void**)&server->marshal);
else if(IsEqualGUID(class, &CLSID_wine_rowset_server))
- create_rowset_marshal((IUnknown*)server, (void**)&server->marshal);
+ create_rowset_marshal((IUnknown*)&server->IWineRowServer_iface, (void**)&server->marshal);
else
ERR("create_server called with class %s\n", debugstr_guid(class));
More information about the wine-cvs
mailing list