Commit 5770f3e3 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

netapi32/tests: Use GetModuleHandle and skip.

parent 8cf9d7c9
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment