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
1542bbd8
Commit
1542bbd8
authored
Aug 04, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Don't crash on some win9x boxes.
parent
a793888a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
crl.c
dlls/crypt32/tests/crl.c
+16
-11
No files found.
dlls/crypt32/tests/crl.c
View file @
1542bbd8
...
...
@@ -161,17 +161,22 @@ static void testAddCRL(void)
ok
(
!
ret
&&
(
GLE
==
CRYPT_E_ASN1_EOD
||
GLE
==
OSS_MORE_INPUT
),
"Expected CRYPT_E_ASN1_EOD or OSS_MORE_INPUT, got %08x
\n
"
,
GLE
);
/* Weird--bad add disposition leads to an access violation in Windows. */
ret
=
CertAddEncodedCRLToStore
(
0
,
X509_ASN_ENCODING
,
signedCRL
,
sizeof
(
signedCRL
),
0
,
NULL
);
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
/* Vista */
),
"Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
ret
=
CertAddEncodedCRLToStore
(
store
,
X509_ASN_ENCODING
,
signedCRL
,
sizeof
(
signedCRL
),
0
,
NULL
);
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
/* Vista */
),
"Expected STATUS_ACCESS_VIOLATION, got %08x
\n
"
,
GetLastError
());
/* Weird--bad add disposition leads to an access violation in Windows.
* Both tests crash on some win9x boxes.
*/
if
(
0
)
{
ret
=
CertAddEncodedCRLToStore
(
0
,
X509_ASN_ENCODING
,
signedCRL
,
sizeof
(
signedCRL
),
0
,
NULL
);
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
/* Vista */
),
"Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
ret
=
CertAddEncodedCRLToStore
(
store
,
X509_ASN_ENCODING
,
signedCRL
,
sizeof
(
signedCRL
),
0
,
NULL
);
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
/* Vista */
),
"Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
}
/* Weird--can add a CRL to the NULL store (does this have special meaning?)
*/
...
...
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