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:
parent
42a378362a
commit
1956eefa0f
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue