msdaps: Avoid casts from COM object to interface.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2021-08-26 09:45:21 +02:00 committed by Alexandre Julliard
parent 678ae0f925
commit e219f5cda7
1 changed files with 2 additions and 2 deletions

View File

@ -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));