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
dd298d56
Commit
dd298d56
authored
Feb 20, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Don't crash on Win9x.
parent
fd37a320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
msg.c
dlls/crypt32/tests/msg.c
+6
-4
No files found.
dlls/crypt32/tests/msg.c
View file @
dd298d56
...
...
@@ -196,7 +196,7 @@ static void test_msg_get_param(void)
ret
=
CryptMsgGetParam
(
msg
,
CMSG_TYPE_PARAM
,
0
,
&
value
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %x
\n
"
,
GetLastError
());
ok
(
value
==
CMSG_DATA
,
"Expected CMSG_DATA, got %d
\n
"
,
value
);
for
(
i
=
CMSG_CONTENT_PARAM
;
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
;
i
++
)
for
(
i
=
CMSG_CONTENT_PARAM
;
have_nt
&&
(
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
)
;
i
++
)
{
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
i
,
0
,
NULL
,
&
size
);
...
...
@@ -211,7 +211,7 @@ static void test_msg_get_param(void)
ret
=
CryptMsgGetParam
(
msg
,
CMSG_TYPE_PARAM
,
0
,
&
value
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %x
\n
"
,
GetLastError
());
ok
(
value
==
CMSG_ENVELOPED
,
"Expected CMSG_ENVELOPED, got %d
\n
"
,
value
);
for
(
i
=
CMSG_CONTENT_PARAM
;
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
;
i
++
)
for
(
i
=
CMSG_CONTENT_PARAM
;
have_nt
&&
(
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
)
;
i
++
)
{
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
i
,
0
,
NULL
,
&
size
);
...
...
@@ -226,7 +226,7 @@ static void test_msg_get_param(void)
ret
=
CryptMsgGetParam
(
msg
,
CMSG_TYPE_PARAM
,
0
,
&
value
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %x
\n
"
,
GetLastError
());
ok
(
value
==
CMSG_HASHED
,
"Expected CMSG_HASHED, got %d
\n
"
,
value
);
for
(
i
=
CMSG_CONTENT_PARAM
;
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
;
i
++
)
for
(
i
=
CMSG_CONTENT_PARAM
;
have_nt
&&
(
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
)
;
i
++
)
{
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
i
,
0
,
NULL
,
&
size
);
...
...
@@ -241,7 +241,7 @@ static void test_msg_get_param(void)
ret
=
CryptMsgGetParam
(
msg
,
CMSG_TYPE_PARAM
,
0
,
&
value
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %x
\n
"
,
GetLastError
());
ok
(
value
==
CMSG_SIGNED
,
"Expected CMSG_SIGNED, got %d
\n
"
,
value
);
for
(
i
=
CMSG_CONTENT_PARAM
;
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
;
i
++
)
for
(
i
=
CMSG_CONTENT_PARAM
;
have_nt
&&
(
i
<=
CMSG_CMS_SIGNER_INFO_PARAM
)
;
i
++
)
{
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
i
,
0
,
NULL
,
&
size
);
...
...
@@ -3040,6 +3040,8 @@ START_TEST(msg)
{
init_function_pointers
();
have_nt
=
detect_nt
();
if
(
!
have_nt
)
win_skip
(
"Win9x crashes on some parameter checks
\n
"
);
/* Basic parameter checking tests */
test_msg_open_to_encode
();
...
...
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