Author: aandrejevic Date: Wed Aug 14 23:28:45 2013 New Revision: 59740
URL: http://svn.reactos.org/svn/reactos?rev=59740&view=rev Log: [NTVDM] Fix bug in DosTerminateProcess.
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?rev... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Wed Aug 14 23:28:45 2013 @@ -1201,7 +1201,7 @@ if (CurrentMcb->BlockType != 'M' && CurrentMcb->BlockType !='Z') break;
/* If this block was allocated by the process, free it */ - if (CurrentMcb->OwnerPsp == Psp) DosFreeMemory(McbSegment); + if (CurrentMcb->OwnerPsp == Psp) DosFreeMemory(McbSegment + 1);
/* If this was the last block, quit */ if (CurrentMcb->BlockType == 'Z') break;