[ADVAPI32]

* Fix set_ntstatus() to use NT_SUCCESS when performing the checks.
CORE-8540

svn path=/trunk/; revision=64980
This commit is contained in:
Amine Khaldi 2014-10-25 13:56:28 +00:00
parent 648ce226ac
commit 21ef917d3f

View file

@ -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[] =