SampDeleteAccountDbObject: Fix the check of a returned status value. The old check caused a failure even though the returned value meant success.

svn path=/trunk/; revision=59145
This commit is contained in:
Eric Kohl 2013-06-02 15:33:40 +00:00
parent 227f950f24
commit f99fb70e9e

View file

@ -419,9 +419,9 @@ SampDeleteAccountDbObject(PSAM_DB_OBJECT DbObject)
NULL, NULL,
NULL, NULL,
&Length); &Length);
if (Status != STATUS_BUFFER_OVERFLOW) if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_OVERFLOW)
{ {
TRACE("Status 0x%08lx\n", Status); TRACE("SampGetObjectAttribute failed (Status 0x%08lx)\n", Status);
goto done; goto done;
} }