SCP: Let sim_messagef() be well behaved when stat is SCPE_OK

This commit is contained in:
Mark Pizzolato 2018-07-13 18:05:30 -07:00
parent 4431350bd1
commit 2c55ad0cfa

2
scp.c
View file

@ -12303,7 +12303,7 @@ if (sim_deb && (((sim_deb != stdout) && (sim_deb != sim_log)) || inhibit_message
if (buf != stackbuf)
free (buf);
return stat | SCPE_NOMESSAGE;
return stat | ((stat != SCPE_OK) ? SCPE_NOMESSAGE : 0);
}
/* Inline debugging - will print debug message if debug file is