Author: akhaldi
Date: Sat Oct 25 13:56:28 2014
New Revision: 64980
URL: http://svn.reactos.org/svn/reactos?rev=64980&view=rev
Log:
[ADVAPI32]
* Fix set_ntstatus() to use NT_SUCCESS when performing the checks.
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sat Oct 25 13:56:28 2014
@@ -264,8 +264,8 @@
/* 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[] =