From: Aleksandar Andrejevic Date: Tue, 12 Nov 2013 00:49:02 +0000 (+0000) Subject: [NTVDM] X-Git-Tag: backups/0.3.17@66124~1365^2~247 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1ff6bc0f8f0dd467ddac5d78839ff5879a90b3da [NTVDM] Report the correct number of paragraphs in the PSP of a COM program. svn path=/branches/ntvdm/; revision=60958 --- 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 */