task: return Invalid format on empty executable (fixes #70)
This commit is contained in:
parent
b562983222
commit
c0b8aa2bf4
@ -844,6 +844,8 @@ COUNT DosExec(COUNT mode, exec_blk FAR * ep, BYTE FAR * lp)
|
||||
else if (rc != 0)
|
||||
{
|
||||
rc = DosComLoader(lp, &TempExeBlock, mode, fd);
|
||||
} else {
|
||||
rc = DE_INVLDFMT;
|
||||
}
|
||||
|
||||
DosCloseSft(fd, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user