Michael Stefaniuc : avifil32: Avoid casts from COM objects to ifaces.
Module: wine Branch: master Commit: d13dde18fa19a38bb4e66673d5c9d05cbd3e9492 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d13dde18fa19a38bb4e66673d5... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Thu Jul 14 10:26:16 2016 +0200 avifil32: Avoid casts from COM objects to ifaces. Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/avifil32/editstream.c | 4 ++-- dlls/avifil32/tmpfile.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/avifil32/editstream.c b/dlls/avifil32/editstream.c index 815283b..2e0fa2f 100644 --- a/dlls/avifil32/editstream.c +++ b/dlls/avifil32/editstream.c @@ -404,11 +404,11 @@ static HRESULT WINAPI IAVIEditStream_fnCopy(IAVIEditStream*iface,LONG*plStart, if (pEdit == NULL) 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 = start; if (FAILED(hr)) - IAVIEditStream_Release((PAVIEDITSTREAM)pEdit); + IAVIEditStream_Release(&pEdit->IAVIEditStream_iface); else *ppResult = &This->IAVIStream_iface; diff --git a/dlls/avifil32/tmpfile.c b/dlls/avifil32/tmpfile.c index 62d283b..ee7e772 100644 --- a/dlls/avifil32/tmpfile.c +++ b/dlls/avifil32/tmpfile.c @@ -274,5 +274,5 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams) } } - return (PAVIFILE)tmpFile; + return &tmpFile->IAVIFile_iface; }
participants (1)
-
Alexandre Julliard