diff --git a/subsystems/ntvdm/dos.c b/subsystems/ntvdm/dos.c index 7b394849937..523c31b38e3 100644 --- a/subsystems/ntvdm/dos.c +++ b/subsystems/ntvdm/dos.c @@ -1194,7 +1194,7 @@ BOOLEAN DosCreateProcess(LPCSTR CommandLine, WORD EnvBlock) /* Initialize the PSP */ DosInitializePsp(Segment, CommandLine, - (WORD)((FileSize + sizeof(DOS_PSP)) >> 4), + MaxAllocSize, EnvBlock); /* Set the initial segment registers */