avifil32: Avoid casts from COM objects to ifaces.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-14 10:26:16 +02:00 committed by Alexandre Julliard
parent 06744904dd
commit d13dde18fa
2 changed files with 3 additions and 3 deletions

View File

@ -404,11 +404,11 @@ static HRESULT WINAPI IAVIEditStream_fnCopy(IAVIEditStream*iface,LONG*plStart,
if (pEdit == NULL) if (pEdit == NULL)
return AVIERR_MEMORY; return AVIERR_MEMORY;
hr = IAVIEditStream_Paste((PAVIEDITSTREAM)pEdit, &start, plLength, &This->IAVIStream_iface, hr = IAVIEditStream_Paste(&pEdit->IAVIEditStream_iface, &start, plLength, &This->IAVIStream_iface,
*plStart, *plStart + *plLength); *plStart, *plStart + *plLength);
*plStart = start; *plStart = start;
if (FAILED(hr)) if (FAILED(hr))
IAVIEditStream_Release((PAVIEDITSTREAM)pEdit); IAVIEditStream_Release(&pEdit->IAVIEditStream_iface);
else else
*ppResult = &This->IAVIStream_iface; *ppResult = &This->IAVIStream_iface;

View File

@ -274,5 +274,5 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams)
} }
} }
return (PAVIFILE)tmpFile; return &tmpFile->IAVIFile_iface;
} }