winemac.drv: Avoid casts from COM objects to interfaces.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-05-29 22:47:28 +02:00 committed by Alexandre Julliard
parent 245417571a
commit 3e08574461
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ static HRESULT WINAPI dddo_QueryInterface(IDataObject* iface, REFIID riid, LPVOI
if (IsEqualIID(riid, &IID_IUnknown) || (IsEqualIID(riid, &IID_IDataObject)))
{
*ppvObj = This;
IUnknown_AddRef((IUnknown*)This);
*ppvObj = iface;
IDataObject_AddRef(iface);
return S_OK;
}