secur32/tests: InitFunctionPtrs() needs to use the global crypt32dll variable.

Michael Stefaniuc mstefani at redhat.de
Tue Dec 18 16:58:02 CST 2007


Else there's nothing to FreeLibrary() at the end of START_TEST().

This fixes the sparse warning:
dlls/secur32/tests/schannel.c:109:13: warning: symbol 'crypt32dll' shadows an earlier one
---
 dlls/secur32/tests/schannel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index 3d3eb7f..dec9368 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -106,8 +106,8 @@ static const BYTE selfSignedCert[] = {
 static void InitFunctionPtrs(void)
 {
     HMODULE advapi32dll = GetModuleHandleA("advapi32.dll");
-    HMODULE crypt32dll = LoadLibraryA("crypt32.dll");
 
+    crypt32dll = LoadLibraryA("crypt32.dll");
     secdll = LoadLibraryA("secur32.dll");
     if(!secdll)
         secdll = LoadLibraryA("security.dll");
-- 
1.5.3.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071218/88024ccd/attachment.pgp 


More information about the wine-patches mailing list