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:
parent
06744904dd
commit
d13dde18fa
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -274,5 +274,5 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (PAVIFILE)tmpFile;
|
return &tmpFile->IAVIFile_iface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue