Author: hbelusca
Date: Tue Sep 16 18:43:16 2014
New Revision: 64170
URL: http://svn.reactos.org/svn/reactos?rev=64170&view=rev
Log:
[NTOS]: Do not break into kdbg because PopFlushVolumes is not fully implemented. Fixes apparent BSOD when trying the "Hibernate" and "Stand By" options in the Task Manager.
CORE-8537 #resolve #comment Demote UNIMPLEMENTED_DBGBREAK for UNIMPLEMENTED in the non-implemented case of PopFlushVolumes. Fixes the apparent BSOD.
Modified:
trunk/reactos/ntoskrnl/po/povolume.c
Modified: trunk/reactos/ntoskrnl/po/povolume.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/povolume.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/po/povolume.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/povolume.c [iso-8859-1] Tue Sep 16 18:43:16 2014
@@ -299,7 +299,7 @@
if (!(FlushPolicy & 2))
{
/* ReactOS only implements this routine for shutdown, which requires it */
- UNIMPLEMENTED_DBGBREAK();
+ UNIMPLEMENTED;
}
/* Check if there were no volumes at all */
Author: ekohl
Date: Tue Sep 16 10:32:04 2014
New Revision: 64169
URL: http://svn.reactos.org/svn/reactos?rev=64169&view=rev
Log:
[SAMSRV]
SampRemoveUserFromAllGroups:
- Do not treat a STATUS_MEMBER_NOT_IN_GROUP, returned by SampRemoveMemberFromGroup, as error but as success.
- Clear the Groups attribute at the end.
Modified:
trunk/reactos/dll/win32/samsrv/user.c
Modified: trunk/reactos/dll/win32/samsrv/user.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/user.c?re…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/user.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/user.c [iso-8859-1] Tue Sep 16 10:32:04 2014
@@ -361,6 +361,8 @@
Status = SampRemoveMemberFromGroup(GroupObject,
UserObject->RelativeId);
+ if (Status == STATUS_MEMBER_NOT_IN_GROUP)
+ Status = STATUS_SUCCESS;
SampCloseDbObject(GroupObject);
@@ -369,6 +371,13 @@
goto done;
}
}
+
+ /* Remove all groups from the Groups attribute */
+ Status = SampSetObjectAttribute(UserObject,
+ L"Groups",
+ REG_BINARY,
+ NULL,
+ 0);
done:
if (GroupsBuffer != NULL)