Commit d13dde18 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

avifil32: Avoid casts from COM objects to ifaces.

parent 06744904
...@@ -404,11 +404,11 @@ static HRESULT WINAPI IAVIEditStream_fnCopy(IAVIEditStream*iface,LONG*plStart, ...@@ -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) ...@@ -274,5 +274,5 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams)
} }
} }
return (PAVIFILE)tmpFile; return &tmpFile->IAVIFile_iface;
} }
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