Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f68a760a
Commit
f68a760a
authored
Jul 14, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Avoid casts of IAVIEditStream to the COM object.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a0b7eb0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
editstream.c
dlls/avifil32/editstream.c
+10
-11
No files found.
dlls/avifil32/editstream.c
View file @
f68a760a
...
...
@@ -70,7 +70,7 @@ struct _IAVIEditStreamImpl {
LPBITMAPINFOHEADER
lpFrame
;
/* frame of pCurStream */
};
static
IAVIEditStream
*
AVIFILE_CreateEditStream
(
IAVIStream
*
stream
);
static
IAVIEditStream
Impl
*
AVIFILE_CreateEditStream
(
IAVIStream
*
stream
);
static
inline
IAVIEditStreamImpl
*
impl_from_IAVIEditStream
(
IAVIEditStream
*
iface
)
{
...
...
@@ -400,7 +400,7 @@ static HRESULT WINAPI IAVIEditStream_fnCopy(IAVIEditStream*iface,LONG*plStart,
*
(
LPDWORD
)
plLength
=
This
->
sInfo
.
dwStart
+
This
->
sInfo
.
dwLength
-
*
(
LPDWORD
)
plStart
;
pEdit
=
(
IAVIEditStreamImpl
*
)
AVIFILE_CreateEditStream
(
NULL
);
pEdit
=
AVIFILE_CreateEditStream
(
NULL
);
if
(
pEdit
==
NULL
)
return
AVIERR_MEMORY
;
...
...
@@ -616,7 +616,7 @@ static HRESULT WINAPI IAVIEditStream_fnClone(IAVIEditStream*iface,
return
AVIERR_BADPARAM
;
*
ppResult
=
NULL
;
pEdit
=
(
IAVIEditStreamImpl
*
)
AVIFILE_CreateEditStream
(
NULL
);
pEdit
=
AVIFILE_CreateEditStream
(
NULL
);
if
(
pEdit
==
NULL
)
return
AVIERR_MEMORY
;
if
(
This
->
nStreams
>
pEdit
->
nTableSize
)
{
...
...
@@ -1007,7 +1007,7 @@ static const struct IAVIStreamVtbl ieditstast = {
IEditAVIStream_fnSetInfo
};
static
IAVIEditStream
*
AVIFILE_CreateEditStream
(
IAVIStream
*
pstream
)
static
IAVIEditStream
Impl
*
AVIFILE_CreateEditStream
(
IAVIStream
*
pstream
)
{
IAVIEditStreamImpl
*
pedit
=
NULL
;
...
...
@@ -1021,7 +1021,7 @@ static IAVIEditStream *AVIFILE_CreateEditStream(IAVIStream *pstream)
IAVIStream_Create
(
&
pedit
->
IAVIStream_iface
,
(
LPARAM
)
pstream
,
0
);
return
(
PAVIEDITSTREAM
)
pedit
;
return
pedit
;
}
/***********************************************************************
...
...
@@ -1030,6 +1030,7 @@ static IAVIEditStream *AVIFILE_CreateEditStream(IAVIStream *pstream)
HRESULT
WINAPI
CreateEditableStream
(
IAVIStream
**
editable
,
IAVIStream
*
src
)
{
IAVIEditStream
*
edit
=
NULL
;
IAVIEditStreamImpl
*
editobj
;
HRESULT
hr
;
TRACE
(
"(%p,%p)
\n
"
,
editable
,
src
);
...
...
@@ -1049,12 +1050,10 @@ HRESULT WINAPI CreateEditableStream(IAVIStream **editable, IAVIStream *src)
}
/* Need own implementation of IAVIEditStream */
edit
=
AVIFILE_CreateEditStream
(
src
);
if
(
!
edit
)
edit
obj
=
AVIFILE_CreateEditStream
(
src
);
if
(
!
edit
obj
)
return
AVIERR_MEMORY
;
*
editable
=
&
editobj
->
IAVIStream_iface
;
hr
=
IAVIEditStream_QueryInterface
(
edit
,
&
IID_IAVIStream
,
(
void
**
)
editable
);
IAVIEditStream_Release
(
edit
);
return
hr
;
return
S_OK
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment