From f54eb842d6c3ad25dcd5b0a47ce822ccc6c37858 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 24 Oct 2014 16:57:17 +0000 Subject: [PATCH] [ADVAPI32] * Reorder AllocateLocallyUniqueId() to reduce difference to Wine. CORE-8540 svn path=/trunk/; revision=64963 --- reactos/dll/win32/advapi32/wine/security.c | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/reactos/dll/win32/advapi32/wine/security.c b/reactos/dll/win32/advapi32/wine/security.c index 7dd58495650..00884176078 100644 --- a/reactos/dll/win32/advapi32/wine/security.c +++ b/reactos/dll/win32/advapi32/wine/security.c @@ -799,6 +799,24 @@ GetLengthSid(PSID pSid) return (DWORD)RtlLengthSid(pSid); } +/* + * @implemented + */ +BOOL WINAPI +AllocateLocallyUniqueId(PLUID Luid) +{ + NTSTATUS Status; + + Status = NtAllocateLocallyUniqueId (Luid); + if (!NT_SUCCESS (Status)) + { + SetLastError(RtlNtStatusToDosError(Status)); + return FALSE; + } + + return TRUE; +} + /* * @implemented */ @@ -2174,24 +2192,6 @@ DuplicateToken(IN HANDLE ExistingTokenHandle, DuplicateTokenHandle); } -/* - * @implemented - */ -BOOL WINAPI -AllocateLocallyUniqueId(PLUID Luid) -{ - NTSTATUS Status; - - Status = NtAllocateLocallyUniqueId (Luid); - if (!NT_SUCCESS (Status)) - { - SetLastError(RtlNtStatusToDosError(Status)); - return FALSE; - } - - return TRUE; -} - /****************************************************************************** * ComputeStringSidSize */