From 1ff6bc0f8f0dd467ddac5d78839ff5879a90b3da Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Tue, 12 Nov 2013 00:49:02 +0000 Subject: [PATCH] [NTVDM] Report the correct number of paragraphs in the PSP of a COM program. svn path=/branches/ntvdm/; revision=60958 --- subsystems/ntvdm/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */