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! */