https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cf56db2eb3ebaa570a7a4…
commit cf56db2eb3ebaa570a7a44d956f7673a2462c7c6
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jun 24 03:30:10 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Jun 27 23:40:13 2018 +0200
[SAMSRV] In SamrGetAliasMembership(), perform STATUS_OBJECT_NAME_NOT_FOUND status
fixup in the assignment loop as done in the allocation loop.
This avoids this function returning failure while everything actually succeeded.
---
dll/win32/samsrv/samrpc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dll/win32/samsrv/samrpc.c b/dll/win32/samsrv/samrpc.c
index c48f7fa2ba..d5651b2236 100644
--- a/dll/win32/samsrv/samrpc.c
+++ b/dll/win32/samsrv/samrpc.c
@@ -3538,6 +3538,9 @@ TRACE("Open %S\n", MemberSidString);
SampRegCloseKey(&MemberKeyHandle);
}
+ if (Status == STATUS_OBJECT_NAME_NOT_FOUND)
+ Status = STATUS_SUCCESS;
+
LocalFree(MemberSidString);
}