d3dxof: Avoid casts from COM objects to interfaces.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-13 09:48:02 +02:00 committed by Alexandre Julliard
parent 42a378362a
commit 1956eefa0f
1 changed files with 3 additions and 3 deletions

View File

@ -900,7 +900,7 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_Resolve(IDirectXFileDataRefe
object->level = 0;
object->from_ref = TRUE;
*ppDataObj = (LPDIRECTXFILEDATA)object;
*ppDataObj = &object->IDirectXFileData_iface;
return DXFILE_OK;
}
@ -1055,10 +1055,10 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
goto error;
}
*ppDataObj = (LPDIRECTXFILEDATA)object;
*ppDataObj = &object->IDirectXFileData_iface;
/* Get a reference to created object */
This->pRefObjects[This->nb_xobjects] = (LPDIRECTXFILEDATA)object;
This->pRefObjects[This->nb_xobjects] = &object->IDirectXFileData_iface;
IDirectXFileData_AddRef(This->pRefObjects[This->nb_xobjects]);
This->nb_xobjects++;