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
179a01f2
Commit
179a01f2
authored
Feb 04, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Make sure to use return value (LLVM/Clang).
parent
c56ce791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
base64.c
dlls/crypt32/tests/base64.c
+3
-0
No files found.
dlls/crypt32/tests/base64.c
View file @
179a01f2
...
...
@@ -151,6 +151,7 @@ static void testBinaryToStringA(void)
ret
=
pCryptBinaryToStringA
(
tests
[
i
].
toEncode
,
tests
[
i
].
toEncodeLen
,
CRYPT_STRING_BINARY
,
str
,
&
strLen2
);
ok
(
ret
,
"CryptBinaryToStringA failed: %d
\n
"
,
GetLastError
());
ok
(
strLen
==
strLen2
,
"Expected length %d, got %d
\n
"
,
strLen
,
strLen2
);
ok
(
!
memcmp
(
str
,
tests
[
i
].
toEncode
,
tests
[
i
].
toEncodeLen
),
...
...
@@ -187,6 +188,7 @@ static void testBinaryToStringA(void)
ret
=
pCryptBinaryToStringA
(
testsNoCR
[
i
].
toEncode
,
testsNoCR
[
i
].
toEncodeLen
,
CRYPT_STRING_BINARY
|
CRYPT_STRING_NOCR
,
str
,
&
strLen2
);
ok
(
ret
,
"CryptBinaryToStringA failed: %d
\n
"
,
GetLastError
());
ok
(
strLen
==
strLen2
,
"Expected length %d, got %d
\n
"
,
strLen
,
strLen2
);
ok
(
!
memcmp
(
str
,
testsNoCR
[
i
].
toEncode
,
testsNoCR
[
i
].
toEncodeLen
),
...
...
@@ -287,6 +289,7 @@ static void decodeAndCompareBase64_A(LPCSTR toDecode, LPCSTR header,
ret
=
pCryptStringToBinaryA
(
str
,
0
,
useFormat
,
buf
,
&
bufLen
,
&
skipped
,
&
usedFormat
);
ok
(
ret
,
"CryptStringToBinaryA failed: %d
\n
"
,
GetLastError
());
ok
(
skipped
==
strlen
(
garbage
),
"Expected %d characters of
\"
%s
\"
skipped when trying format %08x, got %d (used format is %08x)
\n
"
,
lstrlenA
(
garbage
),
str
,
useFormat
,
skipped
,
usedFormat
);
...
...
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