(empth_exit): Fix shutdown on reading "quit" from stdin (crash bug,

reportedly).
This commit is contained in:
Markus Armbruster 2004-01-15 16:29:53 +00:00
parent b2d2815182
commit 1504d1f13b

View file

@ -473,10 +473,8 @@ empth_exit(void)
printf("\nEmpire Server>");
fgets(buf, sizeof(buf), stdin);
if (!strnicmp(buf, "quit", 4))
break;
shutdwn(0);
}
TlsSetValue(loc_GVAR.dwTLSIndex, NULL);
loc_FreeThreadInfo(pThread);
} else {
TlsSetValue(loc_GVAR.dwTLSIndex, NULL);
loc_FreeThreadInfo(pThread);