Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
066fd36e
Commit
066fd36e
authored
Nov 11, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Nov 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Simplify comparing two unsigned ints (PVS-Studio).
parent
6985bbdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
avifile.c
dlls/avifil32/avifile.c
+4
-5
No files found.
dlls/avifil32/avifile.c
View file @
066fd36e
...
...
@@ -465,13 +465,12 @@ static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile *iface, DWORD fccType, LO
This
->
ppStreams
[
nStream
]
!=
NULL
)
{
/* ... so delete it now */
HeapFree
(
GetProcessHeap
(),
0
,
This
->
ppStreams
[
nStream
]);
if
(
This
->
fInfo
.
dwStreams
-
nStream
>
0
)
mem
cpy
(
This
->
ppStreams
+
nStream
,
This
->
ppStreams
+
nStream
+
1
,
(
This
->
fInfo
.
dwStreams
-
nStream
)
*
sizeof
(
IAVIStreamImpl
*
));
This
->
fInfo
.
dwStreams
--
;
if
(
nStream
<
This
->
fInfo
.
dwStreams
)
mem
move
(
&
This
->
ppStreams
[
nStream
],
&
This
->
ppStreams
[
nStream
+
1
]
,
(
This
->
fInfo
.
dwStreams
-
nStream
)
*
sizeof
(
This
->
ppStreams
[
0
]
));
This
->
ppStreams
[
This
->
fInfo
.
dwStreams
]
=
NULL
;
This
->
fInfo
.
dwStreams
--
;
This
->
fDirty
=
TRUE
;
/* This->fInfo will be updated further when asked for */
...
...
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