SCP: fix CID: 1415878 "Useless call"
This commit is contained in:
parent
29eaa45c37
commit
2d4004b936
1 changed files with 6 additions and 2 deletions
|
@ -2972,8 +2972,12 @@ return sim_os_ttcmd ();
|
|||
|
||||
t_stat sim_ttclose (void)
|
||||
{
|
||||
tmxr_shutdown ();
|
||||
return sim_os_ttclose ();
|
||||
t_stat r1 = tmxr_shutdown ();
|
||||
t_stat r2 = sim_os_ttclose ();
|
||||
|
||||
if (r1 != SCPE_OK)
|
||||
return r1;
|
||||
return r2;
|
||||
}
|
||||
|
||||
t_bool sim_ttisatty (void)
|
||||
|
|
Loading…
Add table
Reference in a new issue