Paul Vriens wrote:
> Hi,
>
> netapi32 is already linked to.
>
> Changelog
> Use GetModuleHandle and skip
>
> Cheers,
>
> Paul.
>
>
> ------------------------------------------------------------------------
>
>>From 6595fe64b93f2a81b4f6cbf77df58b2ef67c29ae Mon Sep 17 00:00:00 2001
> From: Paul Vriens <Paul.Vriens.Wine(a)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");
Hi,
this patch is already committed but something is wrong. For some reason
GetModuleHandleA doesn't return a handle.
Does anyone know why? The Makefile.in contains:
IMPORTS = netapi32 advapi32 kernel32
Cheers,
Paul.