mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[ADVAPI32]
* Update CopySid(). CORE-8540 svn path=/trunk/; revision=65006
This commit is contained in:
parent
fd83e0e04f
commit
7a1f0bac68
1 changed files with 9 additions and 17 deletions
|
@ -627,26 +627,18 @@ FreeSid(PSID pSid)
|
||||||
return RtlFreeSid(pSid);
|
return RtlFreeSid(pSid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/******************************************************************************
|
||||||
* @implemented
|
* CopySid [ADVAPI32.@]
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* nDestinationSidLength []
|
||||||
|
* pDestinationSid []
|
||||||
|
* pSourceSid []
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
CopySid(DWORD nDestinationSidLength,
|
CopySid( DWORD nDestinationSidLength, PSID pDestinationSid, PSID pSourceSid )
|
||||||
PSID pDestinationSid,
|
|
||||||
PSID pSourceSid)
|
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
return set_ntstatus(RtlCopySid(nDestinationSidLength, pDestinationSid, pSourceSid));
|
||||||
|
|
||||||
Status = RtlCopySid(nDestinationSidLength,
|
|
||||||
pDestinationSid,
|
|
||||||
pSourceSid);
|
|
||||||
if (!NT_SUCCESS (Status))
|
|
||||||
{
|
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue