[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 12 Nov 2013 00:49:02 +0000 (00:49 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 12 Nov 2013 00:49:02 +0000 (00:49 +0000)
Report the correct number of paragraphs in the PSP of a COM program.

svn path=/branches/ntvdm/; revision=60958

subsystems/ntvdm/dos.c

index 7b39484..523c31b 100644 (file)
@@ -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 */