Fix definition of SECURITY_INTEGER

Thomas Weidenmueller wine-patches at reactsoft.com
Mon Jun 19 04:38:54 CDT 2006


The SECURITY_INTEGER structure shouldn't have a QuadPart member.

- Thomas
-- 
P.S.: Please let me know if there's something wrong with this patch or
tell me why it was rejected. Otherwise I'm going to assume the fixes
aren't appreciated or necessary because the implementation is considered
mature and stable.
-------------- next part --------------
Index: dlls/secur32/negotiate.c
===================================================================
RCS file: /home/wine/wine/dlls/secur32/negotiate.c,v
retrieving revision 1.3
diff -u -r1.3 negotiate.c
--- dlls/secur32/negotiate.c	23 May 2006 12:48:34 -0000	1.3
+++ dlls/secur32/negotiate.c	19 Jun 2006 09:10:31 -0000
@@ -110,7 +110,10 @@
         phCredential->dwUpper = fCredentialsUse;
         /* Same here, shamelessly stolen from schannel.c */
         if (ptsExpiry)
-            ptsExpiry->QuadPart = 0;
+        {
+            ptsExpiry->LowPart = 0;
+            ptsExpiry->HighPart = 0;
+        }
         ret = SEC_E_OK;
     }
     return ret;
Index: include/sspi.h
===================================================================
RCS file: /home/wine/wine/include/sspi.h,v
retrieving revision 1.2
diff -u -r1.2 sspi.h
--- include/sspi.h	23 May 2006 12:49:04 -0000	1.2
+++ include/sspi.h	19 Jun 2006 09:07:14 -0000
@@ -66,7 +66,11 @@
 typedef SecHandle CtxtHandle;
 typedef PSecHandle PCtxtHandle;
 
-typedef LARGE_INTEGER SECURITY_INTEGER, *PSECURITY_INTEGER;
+typedef struct _SECURITY_INTEGER
+{
+    unsigned long LowPart;
+    long HighPart;
+} SECURITY_INTEGER, *PSECURITY_INTEGER;
 typedef SECURITY_INTEGER TimeStamp, *PTimeStamp;
 
 typedef struct _SecPkgInfoA


More information about the wine-patches mailing list