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
113c6145
Commit
113c6145
authored
Nov 23, 2010
by
Alexander Morozov
Committed by
Alexandre Julliard
Nov 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Do not crash on some Win98.
parent
92bfadef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
msg.c
dlls/crypt32/tests/msg.c
+12
-9
No files found.
dlls/crypt32/tests/msg.c
View file @
113c6145
...
@@ -2081,15 +2081,18 @@ static void test_enveloped_msg_open(void)
...
@@ -2081,15 +2081,18 @@ static void test_enveloped_msg_open(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
context
=
CertCreateCertificateContext
(
X509_ASN_ENCODING
,
context
=
CertCreateCertificateContext
(
X509_ASN_ENCODING
,
v1CertWithValidPubKey
,
sizeof
(
v1CertWithValidPubKey
));
v1CertWithValidPubKey
,
sizeof
(
v1CertWithValidPubKey
));
ok
(
context
!=
NULL
,
"CertCreateCertificateContext failed: %08x
\n
"
,
if
(
context
)
GetLastError
());
{
envelopedInfo
.
rgpRecipientCert
=
(
PCERT_INFO
*
)
&
context
->
pCertInfo
;
envelopedInfo
.
rgpRecipientCert
=
(
PCERT_INFO
*
)
&
context
->
pCertInfo
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
msg
=
CryptMsgOpenToEncode
(
PKCS_7_ASN_ENCODING
,
0
,
CMSG_ENVELOPED
,
msg
=
CryptMsgOpenToEncode
(
PKCS_7_ASN_ENCODING
,
0
,
CMSG_ENVELOPED
,
&
envelopedInfo
,
NULL
,
NULL
);
&
envelopedInfo
,
NULL
,
NULL
);
todo_wine
todo_wine
ok
(
msg
!=
NULL
,
"CryptMsgOpenToEncode failed: %08x
\n
"
,
GetLastError
());
ok
(
msg
!=
NULL
,
"CryptMsgOpenToEncode failed: %08x
\n
"
,
GetLastError
());
CryptMsgClose
(
msg
);
CryptMsgClose
(
msg
);
}
else
win_skip
(
"failed to create certificate context, skipping a test
\n
"
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pCryptAcquireContextA
(
&
envelopedInfo
.
hCryptProv
,
NULL
,
NULL
,
ret
=
pCryptAcquireContextA
(
&
envelopedInfo
.
hCryptProv
,
NULL
,
NULL
,
...
...
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