Commit ea31cf0a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Fix LUID definition.

parent 80eff975
...@@ -262,8 +262,8 @@ OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, ...@@ -262,8 +262,8 @@ OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
BOOL WINAPI BOOL WINAPI
AllocateLocallyUniqueId( PLUID lpluid ) AllocateLocallyUniqueId( PLUID lpluid )
{ {
lpluid->s.LowPart = time(NULL); lpluid->LowPart = time(NULL);
lpluid->s.HighPart = 0; lpluid->HighPart = 0;
return TRUE; return TRUE;
} }
......
...@@ -694,10 +694,13 @@ NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID Luid) ...@@ -694,10 +694,13 @@ 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.LowPart++;
if (luid.LowPart==0)
luid.HighPart++;
Luid->HighPart = luid.HighPart;
Luid->LowPart = luid.LowPart;
Luid->QuadPart = luid.QuadPart;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -3591,7 +3591,10 @@ typedef union _ULARGE_INTEGER { ...@@ -3591,7 +3591,10 @@ typedef union _ULARGE_INTEGER {
* Locally Unique Identifier * Locally Unique Identifier
*/ */
typedef LARGE_INTEGER LUID,*PLUID; typedef struct _LUID {
DWORD LowPart;
LONG HighPart;
} LUID, *PLUID;
typedef struct _LUID_AND_ATTRIBUTES { typedef struct _LUID_AND_ATTRIBUTES {
LUID Luid; LUID Luid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment