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
2bf09a9d
Commit
2bf09a9d
authored
Oct 27, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Simplify comparing two unsigned ints (PVS-Studio).
parent
39eede13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
editstream.c
dlls/avifil32/editstream.c
+3
-4
No files found.
dlls/avifil32/editstream.c
View file @
2bf09a9d
...
@@ -169,10 +169,9 @@ static HRESULT AVIFILE_RemoveStream(IAVIEditStreamImpl* const This, DWORD nr)
...
@@ -169,10 +169,9 @@ static HRESULT AVIFILE_RemoveStream(IAVIEditStreamImpl* const This, DWORD nr)
/* remove part nr */
/* remove part nr */
IAVIStream_Release
(
This
->
pStreams
[
nr
].
pStream
);
IAVIStream_Release
(
This
->
pStreams
[
nr
].
pStream
);
This
->
nStreams
--
;
This
->
nStreams
--
;
if
(
This
->
nStreams
-
nr
>
0
)
{
if
(
nr
<
This
->
nStreams
)
memmove
(
This
->
pStreams
+
nr
,
This
->
pStreams
+
nr
+
1
,
memmove
(
&
This
->
pStreams
[
nr
],
&
This
->
pStreams
[
nr
+
1
],
(
This
->
nStreams
-
nr
)
*
sizeof
(
EditStreamTable
));
(
This
->
nStreams
-
nr
)
*
sizeof
(
This
->
pStreams
[
0
]));
}
This
->
pStreams
[
This
->
nStreams
].
pStream
=
NULL
;
This
->
pStreams
[
This
->
nStreams
].
pStream
=
NULL
;
This
->
pStreams
[
This
->
nStreams
].
dwStart
=
0
;
This
->
pStreams
[
This
->
nStreams
].
dwStart
=
0
;
This
->
pStreams
[
This
->
nStreams
].
dwLength
=
0
;
This
->
pStreams
[
This
->
nStreams
].
dwLength
=
0
;
...
...
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