Commit 2000a0ac authored by rswindell's avatar rswindell
Browse files

Bugfix: DOSXTRN.RET is only used for non-native programs (run with DOSXTRN).

parent 771760bb
......@@ -937,11 +937,13 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
}
// Get return value
sprintf(str,"%sDOSXTRN.RET", cfg.node_dir);
FILE* fp=fopen(str,"r");
if(fp!=NULL) {
fscanf(fp,"%d",&retval);
fclose(fp);
if(!native) {
sprintf(str,"%sDOSXTRN.RET", cfg.node_dir);
FILE* fp=fopen(str,"r");
if(fp!=NULL) {
fscanf(fp,"%d",&retval);
fclose(fp);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment