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
68fec902
Commit
68fec902
authored
Mar 13, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Use GetModuleHandle and skip.
parent
9a0e6667
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
base64.c
dlls/crypt32/tests/base64.c
+8
-7
No files found.
dlls/crypt32/tests/base64.c
View file @
68fec902
...
...
@@ -132,8 +132,6 @@ static void testBinaryToStringA(void)
BOOL
ret
;
DWORD
strLen
=
0
,
i
;
if
(
!
pCryptBinaryToStringA
)
return
;
ret
=
pCryptBinaryToStringA
(
NULL
,
0
,
0
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
...
...
@@ -320,8 +318,6 @@ static void testStringToBinaryA(void)
BOOL
ret
;
DWORD
bufLen
=
0
,
i
;
if
(
!
pCryptStringToBinaryA
)
return
;
ret
=
pCryptStringToBinaryA
(
NULL
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
...
...
@@ -443,7 +439,7 @@ static void testStringToBinaryA(void)
START_TEST
(
base64
)
{
HMODULE
lib
=
LoadLibrary
A
(
"crypt32"
);
HMODULE
lib
=
GetModuleHandle
A
(
"crypt32"
);
if
(
lib
)
{
...
...
@@ -452,9 +448,14 @@ START_TEST(base64)
pCryptStringToBinaryA
=
(
CryptStringToBinaryAFunc
)
GetProcAddress
(
lib
,
"CryptStringToBinaryA"
);
if
(
pCryptBinaryToStringA
)
testBinaryToStringA
();
testStringToBinaryA
();
else
skip
(
"CryptBinaryToStringA is not available
\n
"
);
FreeLibrary
(
lib
);
if
(
pCryptStringToBinaryA
)
testStringToBinaryA
();
else
skip
(
"CryptStringToBinaryA is not available
\n
"
);
}
}
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