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
33e310f6
Commit
33e310f6
authored
Mar 13, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Use GetModuleHandle and skip.
parent
f41ebce1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
crypt_sha.c
dlls/advapi32/tests/crypt_sha.c
+6
-4
No files found.
dlls/advapi32/tests/crypt_sha.c
View file @
33e310f6
...
...
@@ -51,12 +51,16 @@ static void test_sha_ctx(void)
ULONG
result
[
5
];
ULONG
result_correct
[
5
]
=
{
0xe014f93
,
0xe09791ec
,
0x6dcf96c8
,
0x8e9385fc
,
0x1611c1bb
};
hmod
=
LoadLibrary
(
"advapi32.dll"
);
hmod
=
GetModuleHandleA
(
"advapi32.dll"
);
pA_SHAInit
=
GetProcAddress
(
hmod
,
"A_SHAInit"
);
pA_SHAUpdate
=
GetProcAddress
(
hmod
,
"A_SHAUpdate"
);
pA_SHAFinal
=
GetProcAddress
(
hmod
,
"A_SHAFinal"
);
if
(
!
pA_SHAInit
||
!
pA_SHAUpdate
||
!
pA_SHAFinal
)
return
;
if
(
!
pA_SHAInit
||
!
pA_SHAUpdate
||
!
pA_SHAFinal
)
{
skip
(
"A_SHAInit and/or A_SHAUpdate and/or A_SHAFinal are not available
\n
"
);
return
;
}
RtlZeroMemory
(
&
ctx
,
sizeof
(
ctx
));
pA_SHAInit
(
&
ctx
);
...
...
@@ -71,8 +75,6 @@ static void test_sha_ctx(void)
pA_SHAFinal
(
&
ctx
,
result
);
ok
(
!
ctxcmp
(
&
ctx
,
&
ctx_initialized
),
"context hasn't been reinitialized
\n
"
);
ok
(
!
memcmp
(
result
,
result_correct
,
sizeof
(
result
)),
"incorrect result
\n
"
);
FreeLibrary
(
hmod
);
}
START_TEST
(
crypt_sha
)
...
...
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