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
509831c0
Commit
509831c0
authored
Jan 10, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use typed pointers in sizeof() and va_arg() (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae3f25cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
api.c
dlls/avifil32/api.c
+8
-8
No files found.
dlls/avifil32/api.c
View file @
509831c0
...
...
@@ -2289,8 +2289,8 @@ HRESULT WINAPIV AVISaveA(LPCSTR szFile, CLSID * pclsidHandler, AVISAVECALLBACK l
if
(
nStreams
<=
0
)
return
AVIERR_BADPARAM
;
streams
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
void
*
));
options
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
void
*
));
streams
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
*
streams
));
options
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
*
options
));
if
(
!
streams
||
!
options
)
{
ret
=
AVIERR_MEMORY
;
...
...
@@ -2303,8 +2303,8 @@ HRESULT WINAPIV AVISaveA(LPCSTR szFile, CLSID * pclsidHandler, AVISAVECALLBACK l
__ms_va_start
(
vl
,
lpOptions
);
for
(
i
=
1
;
i
<
nStreams
;
i
++
)
{
streams
[
i
]
=
va_arg
(
vl
,
void
*
);
options
[
i
]
=
va_arg
(
vl
,
void
*
);
streams
[
i
]
=
va_arg
(
vl
,
PAVISTREAM
);
options
[
i
]
=
va_arg
(
vl
,
PAVICOMPRESSOPTIONS
);
}
__ms_va_end
(
vl
);
...
...
@@ -2332,8 +2332,8 @@ HRESULT WINAPIV AVISaveW(LPCWSTR szFile, CLSID * pclsidHandler, AVISAVECALLBACK
if
(
nStreams
<=
0
)
return
AVIERR_BADPARAM
;
streams
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
void
*
));
options
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
void
*
));
streams
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
*
streams
));
options
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
*
options
));
if
(
!
streams
||
!
options
)
{
ret
=
AVIERR_MEMORY
;
...
...
@@ -2346,8 +2346,8 @@ HRESULT WINAPIV AVISaveW(LPCWSTR szFile, CLSID * pclsidHandler, AVISAVECALLBACK
__ms_va_start
(
vl
,
lpOptions
);
for
(
i
=
1
;
i
<
nStreams
;
i
++
)
{
streams
[
i
]
=
va_arg
(
vl
,
void
*
);
options
[
i
]
=
va_arg
(
vl
,
void
*
);
streams
[
i
]
=
va_arg
(
vl
,
PAVISTREAM
);
options
[
i
]
=
va_arg
(
vl
,
PAVICOMPRESSOPTIONS
);
}
__ms_va_end
(
vl
);
...
...
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