Fix LUID definition.
This commit is contained in:
parent
80eff97527
commit
ea31cf0a57
|
@ -262,8 +262,8 @@ OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
|
|||
BOOL WINAPI
|
||||
AllocateLocallyUniqueId( PLUID lpluid )
|
||||
{
|
||||
lpluid->s.LowPart = time(NULL);
|
||||
lpluid->s.HighPart = 0;
|
||||
lpluid->LowPart = time(NULL);
|
||||
lpluid->HighPart = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -692,12 +692,15 @@ NTSTATUS WINAPI NtPowerInformation(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5)
|
|||
*/
|
||||
NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID Luid)
|
||||
{
|
||||
static LUID luid;
|
||||
static LUID luid;
|
||||
|
||||
FIXME("%p (0x%08lx%08lx)\n", Luid, luid.DUMMYSTRUCTNAME.HighPart, luid.DUMMYSTRUCTNAME.LowPart);
|
||||
FIXME("%p (0x%08lx%08lx)\n", Luid, luid.HighPart, luid.LowPart);
|
||||
|
||||
luid.QuadPart++;
|
||||
|
||||
Luid->QuadPart = luid.QuadPart;
|
||||
return STATUS_SUCCESS;
|
||||
luid.LowPart++;
|
||||
if (luid.LowPart==0)
|
||||
luid.HighPart++;
|
||||
Luid->HighPart = luid.HighPart;
|
||||
Luid->LowPart = luid.LowPart;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -3591,12 +3591,15 @@ typedef union _ULARGE_INTEGER {
|
|||
* Locally Unique Identifier
|
||||
*/
|
||||
|
||||
typedef LARGE_INTEGER LUID,*PLUID;
|
||||
typedef struct _LUID {
|
||||
DWORD LowPart;
|
||||
LONG HighPart;
|
||||
} LUID, *PLUID;
|
||||
|
||||
typedef struct _LUID_AND_ATTRIBUTES {
|
||||
LUID Luid;
|
||||
DWORD Attributes;
|
||||
} LUID_AND_ATTRIBUTES;
|
||||
LUID Luid;
|
||||
DWORD Attributes;
|
||||
} LUID_AND_ATTRIBUTES;
|
||||
|
||||
/*
|
||||
* PRIVILEGE_SET
|
||||
|
|
Loading…
Reference in New Issue