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
25b4a928
Commit
25b4a928
authored
Nov 02, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Avoid an always true ok() condition (PVS-Studio).
parent
a423cbdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
ctl.c
dlls/crypt32/tests/ctl.c
+2
-14
No files found.
dlls/crypt32/tests/ctl.c
View file @
25b4a928
...
...
@@ -390,20 +390,8 @@ static void testAddCTLToStore(void)
signedCTLWithCTLInnerContentAndBadSig
,
sizeof
(
signedCTLWithCTLInnerContentAndBadSig
),
CERT_STORE_ADD_NEW
,
NULL
);
if
(
ret
)
{
/* win9x */
ok
(
GetLastError
()
==
CRYPT_E_NOT_FOUND
||
GetLastError
()
==
OSS_DATA_ERROR
/* some win98 */
,
"Expected CRYPT_E_NOT_FOUND, got %08x
\n
"
,
GetLastError
());
}
else
{
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_EXISTS
||
GetLastError
()
==
OSS_DATA_ERROR
),
"expected CRYPT_E_EXISTS or OSS_DATA_ERROR, got %d %08x
\n
"
,
ret
,
GetLastError
());
}
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_EXISTS
||
GetLastError
()
==
OSS_DATA_ERROR
),
"expected CRYPT_E_EXISTS or OSS_DATA_ERROR, got %d %08x
\n
"
,
ret
,
GetLastError
());
CertCloseStore
(
store
,
0
);
store
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
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