(empth_exit): Fix shutdown on reading "quit" from stdin (crash bug,
reportedly).
This commit is contained in:
parent
b2d2815182
commit
1504d1f13b
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue