mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
[ADVAPI32]
* Fix set_ntstatus() to use NT_SUCCESS when performing the checks. CORE-8540 svn path=/trunk/; revision=64980
This commit is contained in:
parent
648ce226ac
commit
21ef917d3f
|
@ -264,8 +264,8 @@ static const ACEFLAG AceRights[] =
|
|||
/* used for functions that are a simple wrapper around the corresponding ntdll API */
|
||||
static __inline BOOL set_ntstatus( NTSTATUS status )
|
||||
{
|
||||
if (status) SetLastError( RtlNtStatusToDosError( status ));
|
||||
return !status;
|
||||
if (!NT_SUCCESS(status)) SetLastError( RtlNtStatusToDosError( status ));
|
||||
return NT_SUCCESS(status);
|
||||
}
|
||||
|
||||
static const RECORD SidTable[] =
|
||||
|
|
Loading…
Reference in a new issue