projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
227f950
)
[SAMSRV]
author
Eric Kohl
<eric.kohl@reactos.org>
Sun, 2 Jun 2013 15:33:40 +0000
(15:33 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sun, 2 Jun 2013 15:33:40 +0000
(15:33 +0000)
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
reactos/dll/win32/samsrv/database.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/samsrv/database.c
b/reactos/dll/win32/samsrv/database.c
index
e1bf384
..
735af60
100644
(file)
--- a/
reactos/dll/win32/samsrv/database.c
+++ b/
reactos/dll/win32/samsrv/database.c
@@
-419,9
+419,9
@@
SampDeleteAccountDbObject(PSAM_DB_OBJECT DbObject)
NULL,
NULL,
&Length);
- if (Status != STATUS_BUFFER_OVERFLOW)
+ if (
!NT_SUCCESS(Status) &&
Status != STATUS_BUFFER_OVERFLOW)
{
- TRACE("S
tatus 0x%08lx
\n", Status);
+ TRACE("S
ampGetObjectAttribute failed (Status 0x%08lx)
\n", Status);
goto done;
}