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
0d258b47
Commit
0d258b47
authored
Feb 05, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32/tests: Remove useless variable assignments (LLVM/Clang).
parent
4fd76b09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
api.c
dlls/avifil32/tests/api.c
+8
-9
No files found.
dlls/avifil32/tests/api.c
View file @
0d258b47
...
...
@@ -232,11 +232,7 @@ static void test_EditStreamSetInfo(void)
hres
=
CreateEditableStream
(
&
stream
,
NULL
);
ok
(
hres
==
AVIERR_OK
,
"got 0x%08X, expected AVIERR_OK
\n
"
,
hres
);
if
(
0
)
/* Crashing - first parameter not checked */
hres
=
EditStreamSetInfo
(
NULL
,
&
info
,
sizeof
(
AVISTREAMINFO
)
);
/* Size parameter is somehow checked (notice the crash with size=-1 below) */
/* Size parameter is somehow checked (notice the crash with size=-1 below) */
hres
=
EditStreamSetInfo
(
stream
,
NULL
,
0
);
ok
(
hres
==
AVIERR_BADSIZE
,
"got 0x%08X, expected AVIERR_BADSIZE
\n
"
,
hres
);
...
...
@@ -244,11 +240,14 @@ static void test_EditStreamSetInfo(void)
ok
(
hres
==
AVIERR_BADSIZE
,
"got 0x%08X, expected AVIERR_BADSIZE
\n
"
,
hres
);
if
(
0
)
{
/* Crashing - second parameter not checked */
hres
=
EditStreamSetInfo
(
stream
,
NULL
,
sizeof
(
AVISTREAMINFO
)
);
{
/* Crashing - first parameter not checked */
EditStreamSetInfo
(
NULL
,
&
info
,
sizeof
(
AVISTREAMINFO
)
);
/* Crashing - second parameter not checked */
EditStreamSetInfo
(
stream
,
NULL
,
sizeof
(
AVISTREAMINFO
)
);
hres
=
EditStreamSetInfo
(
stream
,
NULL
,
-
1
);
ok
(
hres
==
AVIERR_BADSIZE
,
"got 0x%08X, expected AVIERR_BADSIZE
\n
"
,
hres
);
EditStreamSetInfo
(
stream
,
NULL
,
-
1
);
}
hres
=
AVIStreamInfo
(
stream
,
&
info
,
sizeof
(
AVISTREAMINFO
)
);
...
...
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