Kai Blin : secur32: Fix ntlm_auth version number check when registering the NTLM SSP.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 6 08:03:23 CST 2007


Module: wine
Branch: master
Commit: 7325bbd12748d523a7cc63f537fb00fbc5b093a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7325bbd12748d523a7cc63f537fb00fbc5b093a4

Author: Kai Blin <kai.blin at gmail.com>
Date:   Mon Feb  5 23:51:06 2007 +0100

secur32: Fix ntlm_auth version number check when registering the NTLM SSP.

---

 dlls/secur32/ntlm.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c
index b632389..af5b3f0 100644
--- a/dlls/secur32/ntlm.c
+++ b/dlls/secur32/ntlm.c
@@ -1760,8 +1760,10 @@ void SECUR32_initNTLMSP(void)
         check_version(helper);
 
     if( (helper->major >  MIN_NTLM_AUTH_MAJOR_VERSION) ||
-        (helper->major  = MIN_NTLM_AUTH_MAJOR_VERSION  &&
-         helper->minor >= MIN_NTLM_AUTH_MINOR_VERSION  &&
+        (helper->major == MIN_NTLM_AUTH_MAJOR_VERSION  &&
+         helper->minor >  MIN_NTLM_AUTH_MINOR_VERSION) ||
+        (helper->major == MIN_NTLM_AUTH_MAJOR_VERSION  &&
+         helper->minor == MIN_NTLM_AUTH_MINOR_VERSION  &&
          helper->micro >= MIN_NTLM_AUTH_MICRO_VERSION) )
     {
         SecureProvider *provider = SECUR32_addProvider(&ntlmTableA, &ntlmTableW, NULL);




More information about the wine-cvs mailing list