Author: aandrejevic Date: Tue May 5 03:52:25 2015 New Revision: 67556
URL: http://svn.reactos.org/svn/reactos?rev=67556&view=rev Log: [NTVDM] In DosTerminateProcess, McbSegment is the segment of the MCB itself, not the data it contains.
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/d... ============================================================================== --- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c [iso-8859-1] Tue May 5 03:52:25 2015 @@ -839,7 +839,7 @@ if (KeepResident) { /* Check if this is the PSP block and we should reduce its size */ - if (McbSegment == Psp && KeepResident < CurrentMcb->Size) + if ((McbSegment + 1) == Psp && KeepResident < CurrentMcb->Size) { /* Reduce the size of the block */ DosResizeMemory(McbSegment + 1, KeepResident, NULL);