mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 20:34:00 +00:00
[NTVDM]
Fix bug in DosTerminateProcess. svn path=/branches/ntvdm/; revision=59740
This commit is contained in:
parent
58931acc6a
commit
a9fdfb3371
1 changed files with 1 additions and 1 deletions
|
@ -1201,7 +1201,7 @@ VOID DosTerminateProcess(WORD Psp, BYTE ReturnCode)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue