/*
* PROJECT: ReactOS Windows-Compatible Session Manager
* LICENSE: BSD 2-Clause License
- * FILE: base/system/smss/smss.c
+ * FILE: base/system/smss/smsubsys.c
* PURPOSE: Main SMSS Code
* PROGRAMMERS: Alex Ionescu
*/
/* INCLUDES *******************************************************************/
#include "smss.h"
+
#define NDEBUG
#include <debug.h>
RtlEnterCriticalSection(&SmpKnownSubSysLock);
while (TRUE)
{
- /* Check if we found a subsystem not yet fully iniitalized */
+ /* Check if we found a subsystem not yet fully initialized */
Subsystem = SmpLocateKnownSubSysByType(MuSessionId, -1);
if (!Subsystem) break;
RtlLeaveCriticalSection(&SmpKnownSubSysLock);
NewSubsystem->PortHandle = NULL;
NewSubsystem->SbApiPort = NULL;
- /* Create the event we'll be wating on for initialization */
+ /* Create the event we'll be waiting on for initialization */
Status = NtCreateEvent(&NewSubsystem->Event,
EVENT_ALL_ACCESS,
NULL,
{
RemoveEntryList(&NewSubsystem->Entry);
NtSetEvent(NewSubsystem->Event, 0);
- if (NewSubsystem) SmpDereferenceSubsystem(NewSubsystem);
+ SmpDereferenceSubsystem(NewSubsystem);
}
/* Finally, we're all done! */
/* Return status */
return Status;
}
-