[1/4] secur32/tests: Use LoadLibrary instead of GetModuleHandle to load advapi32.dll APIs.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Dec 11 02:14:43 CST 2013
Otherwise GetProcAddress("CryptAcquireContextW") returns NULL under Windows 7
(and probably others as well for unknown reason) leading to skipped tests.
---
dlls/secur32/tests/schannel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index 81539c7..a00c276 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -123,7 +123,7 @@ static void InitFunctionPtrs(void)
secdll = LoadLibraryA("secur32.dll");
if(!secdll)
secdll = LoadLibraryA("security.dll");
- advapi32dll = GetModuleHandleA("advapi32.dll");
+ advapi32dll = LoadLibraryA("advapi32.dll");
#define GET_PROC(h, func) p ## func = (void*)GetProcAddress(h, #func)
--
1.8.5.1
More information about the wine-patches
mailing list