Fix definition of LUID constants
Modified: trunk/reactos/include/ntos/security.h
Modified: trunk/reactos/ntoskrnl/se/luid.c

Modified: trunk/reactos/include/ntos/security.h
--- trunk/reactos/include/ntos/security.h	2005-02-06 22:16:05 UTC (rev 13453)
+++ trunk/reactos/include/ntos/security.h	2005-02-07 10:29:44 UTC (rev 13454)
@@ -74,17 +74,10 @@
 
 #ifndef __USE_W32API
 
-#ifndef _MSC_VER 
-#define SYSTEM_LUID                    {{ 0x3E7, 0x0 }}
-#define ANONYMOUS_LOGON_LUID           {{ 0x3e6, 0x0 }}
-#define LOCALSERVICE_LUID              {{ 0x3e5, 0x0 }}
-#define NETWORKSERVICE_LUID            {{ 0x3e4, 0x0 }}
-#else
 #define SYSTEM_LUID                     { 0x3E7, 0x0 }
 #define ANONYMOUS_LOGON_LUID            { 0x3e6, 0x0 }
 #define LOCALSERVICE_LUID               { 0x3e5, 0x0 }
 #define NETWORKSERVICE_LUID             { 0x3e4, 0x0 }
-#endif
     
 /* SID Auhority */
 #define SECURITY_NULL_SID_AUTHORITY		{0,0,0,0,0,0}

Modified: trunk/reactos/ntoskrnl/se/luid.c
--- trunk/reactos/ntoskrnl/se/luid.c	2005-02-06 22:16:05 UTC (rev 13453)
+++ trunk/reactos/ntoskrnl/se/luid.c	2005-02-07 10:29:44 UTC (rev 13454)
@@ -24,10 +24,11 @@
 VOID INIT_FUNCTION
 SepInitLuid(VOID)
 {
-  LARGE_INTEGER DummyLuidValue = SYSTEM_LUID;
+  LUID DummyLuidValue = SYSTEM_LUID;
   
   KeInitializeSpinLock(&LuidLock);
-  LuidValue = DummyLuidValue;
+  LuidValue.u.HighPart = DummyLuidValue.HighPart;
+  LuidValue.u.LowPart = DummyLuidValue.LowPart;
   LuidIncrement.QuadPart = 1;
 }