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
e1f0fb8b
Commit
e1f0fb8b
authored
Feb 18, 2016
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Clarify some base64 test failed messages.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
981c16e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
base64.c
dlls/crypt32/tests/base64.c
+5
-5
No files found.
dlls/crypt32/tests/base64.c
View file @
e1f0fb8b
...
...
@@ -319,20 +319,20 @@ static void testStringToBinaryA(void)
ret
=
pCryptStringToBinaryA
(
NULL
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got
%d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_PARAMETER, got
ret=%d le=%u
\n
"
,
ret
,
GetLastError
());
ret
=
pCryptStringToBinaryA
(
NULL
,
0
,
0
,
NULL
,
&
bufLen
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got
%d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_PARAMETER, got
ret=%d le=%u
\n
"
,
ret
,
GetLastError
());
/* Bogus format */
ret
=
pCryptStringToBinaryA
(
tests
[
0
].
base64
,
0
,
0
,
NULL
,
&
bufLen
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
"Expected ERROR_INVALID_DATA, got
%d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_DATA, got
ret=%d le=%u
\n
"
,
ret
,
GetLastError
());
/* Decoding doesn't expect the NOCR flag to be specified */
ret
=
pCryptStringToBinaryA
(
tests
[
0
].
base64
,
1
,
CRYPT_STRING_BASE64
|
CRYPT_STRING_NOCR
,
NULL
,
&
bufLen
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
"Expected ERROR_INVALID_DATA, got
%d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_DATA, got
ret=%d le=%u
\n
"
,
ret
,
GetLastError
());
/* Bad strings */
for
(
i
=
0
;
i
<
sizeof
(
badStrings
)
/
sizeof
(
badStrings
[
0
]);
i
++
)
{
...
...
@@ -340,7 +340,7 @@ static void testStringToBinaryA(void)
ret
=
pCryptStringToBinaryA
(
badStrings
[
i
].
str
,
0
,
badStrings
[
i
].
format
,
NULL
,
&
bufLen
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
"Expected ERROR_INVALID_DATA, got
%d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_DATA, got
ret=%d le=%u
\n
"
,
ret
,
GetLastError
());
}
/* Good strings */
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]);
i
++
)
...
...
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