Paul Vriens : advapi32/tests: Make use of skip.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 2 06:14:30 CST 2007
Module: wine
Branch: master
Commit: 6bf1a6c5d2ff63270095e8475f594661da00300e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6bf1a6c5d2ff63270095e8475f594661da00300e
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Fri Mar 2 09:59:26 2007 +0100
advapi32/tests: Make use of skip.
---
dlls/advapi32/tests/crypt_md5.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/crypt_md5.c b/dlls/advapi32/tests/crypt_md5.c
index 1916ac8..596184d 100644
--- a/dlls/advapi32/tests/crypt_md5.c
+++ b/dlls/advapi32/tests/crypt_md5.c
@@ -77,13 +77,17 @@ static void test_md5_ctx(void)
{ 0x43, 0x03, 0xdd, 0x8c, 0x60, 0xd9, 0x3a, 0x22,
0x0b, 0x28, 0xd0, 0xb2, 0x65, 0x93, 0xd0, 0x36 };
- if (!(module = LoadLibrary( "advapi32.dll" ))) return;
+ if (!(module = GetModuleHandleA( "advapi32.dll" ))) return;
pMD5Init = (fnMD5Init)GetProcAddress( module, "MD5Init" );
pMD5Update = (fnMD5Update)GetProcAddress( module, "MD5Update" );
pMD5Final = (fnMD5Final)GetProcAddress( module, "MD5Final" );
- if (!pMD5Init || !pMD5Update || !pMD5Final) goto out;
+ if (!pMD5Init || !pMD5Update || !pMD5Final)
+ {
+ skip("Needed functions are not available\n");
+ goto out;
+ }
memset( &ctx, 0, sizeof(ctx) );
pMD5Init( &ctx );
More information about the wine-cvs
mailing list