mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-24 06:14:29 +02:00
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)
|
else if (rc != 0)
|
||||||
{
|
{
|
||||||
rc = DosComLoader(lp, &TempExeBlock, mode, fd);
|
rc = DosComLoader(lp, &TempExeBlock, mode, fd);
|
||||||
|
} else {
|
||||||
|
rc = DE_INVLDFMT;
|
||||||
}
|
}
|
||||||
|
|
||||||
DosCloseSft(fd, FALSE);
|
DosCloseSft(fd, FALSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user