Author: aandrejevic
Date: Tue Nov 12 00:49:02 2013
New Revision: 60958
URL:
http://svn.reactos.org/svn/reactos?rev=60958&view=rev
Log:
[NTVDM]
Report the correct number of paragraphs in the PSP of a COM program.
Modified:
branches/ntvdm/subsystems/ntvdm/dos.c
Modified: branches/ntvdm/subsystems/ntvdm/dos.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos.c?re…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Tue Nov 12 00:49:02 2013
@@ -1194,7 +1194,7 @@
/* Initialize the PSP */
DosInitializePsp(Segment,
CommandLine,
- (WORD)((FileSize + sizeof(DOS_PSP)) >> 4),
+ MaxAllocSize,
EnvBlock);
/* Set the initial segment registers */