mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Fix definition of LUID constants
svn path=/trunk/; revision=13454
This commit is contained in:
parent
4cc354816b
commit
8b55015f04
2 changed files with 3 additions and 9 deletions
|
@ -74,17 +74,10 @@ typedef struct _SECURITY_DESCRIPTOR_CONTEXT
|
|||
|
||||
#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}
|
||||
|
|
|
@ -24,10 +24,11 @@ static LARGE_INTEGER LuidValue;
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue