Commit 1956eefa authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dxof: Avoid casts from COM objects to interfaces.

parent 42a37836
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment