Paul Vriens : netapi32/tests: Use GetModuleHandle and skip.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 16 07:20:27 CDT 2007
Module: wine
Branch: master
Commit: 5770f3e30d6015508abe07bd53dc08b3d73c449b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5770f3e30d6015508abe07bd53dc08b3d73c449b
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Fri Mar 16 12:02:25 2007 +0100
netapi32/tests: 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");
More information about the wine-cvs
mailing list