task: return Invalid format on empty executable (fixes #70)

This commit is contained in:
C. Masloch 2022-05-21 15:32:55 +02:00 committed by Kenneth J Davis
parent b562983222
commit c0b8aa2bf4

View File

@ -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);