Hi,
Could anyone think of a reason that the netapi32 tests are not linked with netapi32.dll although this is specified in the Makefile?
I just had a look with PE Explorer at the crosstest executable and it didn't contain the netapi32.dll.
The ds-test now skips all these tests on both Wine and Windows as I've changed that test to use GetModuleHandle instead of LoadLibrary (and this obviously failed).
This also means it's not only the crosscompiling that fails to link.
Cheers,
Paul.
Paul Vriens wrote:
Hi,
Could anyone think of a reason that the netapi32 tests are not linked with netapi32.dll although this is specified in the Makefile?
It looks like the tests doesn't call directly any function from netapi32. In such a case the compiler can skip linking the DLL (e.g. VC++ does it).
Mikolaj Zalewski
Mikołaj Zalewski wrote:
Paul Vriens wrote:
Hi,
Could anyone think of a reason that the netapi32 tests are not linked with netapi32.dll although this is specified in the Makefile?
It looks like the tests doesn't call directly any function from netapi32. In such a case the compiler can skip linking the DLL (e.g. VC++ does it).
Mikolaj Zalewski
Yep,
that's it. I've added one 'real' call and then things seems alright.
Do you know if this behavior can be bypassed/overwritten. I can of course change the tests accordingly (doing a LoadLibrary where needed).
I'm not sure what the 'best' option is.
Cheers,
Paul.