Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
ef8db24b
Commit
ef8db24b
authored
Dec 22, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Avoid always true ok() checks (PVS-Studio).
parent
828a4689
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mlang.c
dlls/mlang/tests/mlang.c
+6
-6
No files found.
dlls/mlang/tests/mlang.c
View file @
ef8db24b
...
...
@@ -487,15 +487,15 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
ok
(
ret
==
S_OK
,
"IEnumCodePage_Reset: expected S_OK, got %08x
\n
"
,
ret
);
n
=
65536
;
ret
=
IEnumCodePage_Next
(
iEnumCP
,
0
,
NULL
,
&
n
);
ok
(
ret
==
S_FALSE
||
ret
==
E_FAIL
,
"IEnumCodePage_Next: expected S_FALSE or E_FAIL, got %08x
\n
"
,
ret
);
if
(
ret
==
S_FALSE
)
ok
(
n
==
0
&&
ret
==
S_FALSE
,
"IEnumCodePage_Next: expected 0/S_FALSE, got %u/%08x
\n
"
,
n
,
ret
);
ok
(
n
==
0
,
"IEnumCodePage_Next: expected 0/S_FALSE, got %u/%08x
\n
"
,
n
,
ret
);
else
if
(
ret
==
E_FAIL
)
ok
(
n
==
65536
&&
ret
==
E_FAIL
,
"IEnumCodePage_Next: expected 65536/E_FAIL, got %u/%08x
\n
"
,
n
,
ret
);
ok
(
n
==
65536
,
"IEnumCodePage_Next: expected 65536/E_FAIL, got %u/%08x
\n
"
,
n
,
ret
);
ret
=
IEnumCodePage_Next
(
iEnumCP
,
0
,
NULL
,
NULL
);
if
(
ret
==
S_FALSE
)
ok
(
ret
==
S_FALSE
,
"IEnumCodePage_Next: expected S_FALSE, got %08x
\n
"
,
ret
);
else
if
(
ret
==
E_FAIL
)
ok
(
n
==
65536
&&
ret
==
E_FAIL
,
"IEnumCodePage_Next: expected 65536/E_FAIL, got %u/%08x
\n
"
,
n
,
ret
);
ok
(
ret
==
S_FALSE
||
ret
==
E_FAIL
,
"IEnumCodePage_Next: expected S_FALSE or E_FAIL, got %08x
\n
"
,
ret
);
cpinfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
cpinfo
)
*
total
*
2
);
...
...
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