mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[NTVDM]
In DosTerminateProcess, McbSegment is the segment of the MCB itself, not the data it contains. svn path=/trunk/; revision=67556
This commit is contained in:
parent
6e72d71daa
commit
4e51a1b77e
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ VOID DosTerminateProcess(WORD Psp, BYTE ReturnCode, WORD KeepResident)
|
||||||
if (KeepResident)
|
if (KeepResident)
|
||||||
{
|
{
|
||||||
/* Check if this is the PSP block and we should reduce its size */
|
/* 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 */
|
/* Reduce the size of the block */
|
||||||
DosResizeMemory(McbSegment + 1, KeepResident, NULL);
|
DosResizeMemory(McbSegment + 1, KeepResident, NULL);
|
||||||
|
|
Loading…
Reference in a new issue