[netapi32/tests] Use GetModuleHandle and skip

Paul Vriens paul.vriens.wine at gmail.com
Fri Mar 16 06:02:25 CDT 2007


Hi,

netapi32 is already linked to.

Changelog
    Use GetModuleHandle and skip

Cheers,

Paul.

-------------- next part --------------
>From 6595fe64b93f2a81b4f6cbf77df58b2ef67c29ae Mon Sep 17 00:00:00 2001
From: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri, 16 Mar 2007 12:00:08 +0100
Subject: [PATCH] Use GetModuleHandle and skip

---
 dlls/netapi32/tests/ds.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/netapi32/tests/ds.c b/dlls/netapi32/tests/ds.c
index 7d0413d..7ee8a73 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");
-- 
1.4.4.2




More information about the wine-patches mailing list