From 5770f3e30d6015508abe07bd53dc08b3d73c449b Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Fri, 16 Mar 2007 12:02:25 +0100 Subject: [PATCH] netapi32/tests: Use GetModuleHandle and skip. --- dlls/netapi32/tests/ds.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/netapi32/tests/ds.c b/dlls/netapi32/tests/ds.c index 7d0413dfde1..7ee8a73ef9b 100644 --- a/dlls/netapi32/tests/ds.c +++ b/dlls/netapi32/tests/ds.c @@ -78,15 +78,12 @@ START_TEST(ds) { HMODULE hnetapi32; - hnetapi32 = LoadLibraryA("netapi32.dll"); - if (!hnetapi32) - return; + hnetapi32 = GetModuleHandleA("netapi32.dll"); - SetLastError(0xdeadbeef); pDsRoleGetPrimaryDomainInformation=(void*)GetProcAddress(hnetapi32,"DsRoleGetPrimaryDomainInformation"); if (!pDsRoleGetPrimaryDomainInformation) { - trace("DsRoleGetPrimaryDomainInformation not implemented : (%d), stop testing\n", GetLastError()); + skip("DsRoleGetPrimaryDomainInformation is not available\n"); return; } pDsRoleFreeMemory=(void*)GetProcAddress(hnetapi32,"DsRoleFreeMemory");