Author: ekohl
Date: Sun Jun 2 15:33:40 2013
New Revision: 59145
URL:
http://svn.reactos.org/svn/reactos?rev=59145&view=rev
Log:
[SAMSRV]
SampDeleteAccountDbObject: Fix the check of a returned status value. The old check caused
a failure even though the returned value meant success.
Modified:
trunk/reactos/dll/win32/samsrv/database.c
Modified: trunk/reactos/dll/win32/samsrv/database.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/database.…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/database.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/database.c [iso-8859-1] Sun Jun 2 15:33:40 2013
@@ -419,9 +419,9 @@
NULL,
NULL,
&Length);
- if (Status != STATUS_BUFFER_OVERFLOW)
- {
- TRACE("Status 0x%08lx\n", Status);
+ if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_OVERFLOW)
+ {
+ TRACE("SampGetObjectAttribute failed (Status 0x%08lx)\n", Status);
goto done;
}