From e3d56ce220f6cbb3202696855462646e7239f932 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 15 Oct 2009 16:47:26 +0000 Subject: [PATCH] - Fix inverted if condition in TEB initialization, spotted by Stefan. svn path=/trunk/; revision=43479 --- reactos/ntoskrnl/mm/ARM3/procsup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/procsup.c b/reactos/ntoskrnl/mm/ARM3/procsup.c index d64678b6847..ae711fdd4c2 100644 --- a/reactos/ntoskrnl/mm/ARM3/procsup.c +++ b/reactos/ntoskrnl/mm/ARM3/procsup.c @@ -655,21 +655,21 @@ MmCreateTeb(IN PEPROCESS Process, (InitialTeb->PreviousStackLimit == NULL)) { // - // Use grandparent TEB values + // Use initial TEB values // - Teb->Tib.StackBase = InitialTeb->PreviousStackBase; - Teb->Tib.StackLimit = InitialTeb->PreviousStackLimit; + Teb->Tib.StackBase = InitialTeb->StackBase; + Teb->Tib.StackLimit = InitialTeb->StackLimit; + Teb->DeallocationStack = InitialTeb->AllocatedStackBase; } else { // - // Use initial TEB values + // Use grandparent TEB values // - Teb->Tib.StackBase = InitialTeb->StackBase; - Teb->Tib.StackLimit = InitialTeb->StackLimit; - Teb->DeallocationStack = InitialTeb->AllocatedStackBase; + Teb->Tib.StackBase = InitialTeb->PreviousStackBase; + Teb->Tib.StackLimit = InitialTeb->PreviousStackLimit; } - + // // Initialize the static unicode string // -- 2.17.1