Author: fireball
Date: Thu Oct 15 18:47:26 2009
New Revision: 43479
URL:
http://svn.reactos.org/svn/reactos?rev=43479&view=rev
Log:
- Fix inverted if condition in TEB initialization, spotted by Stefan.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/procsup.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/procsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/procsup.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/procsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/procsup.c [iso-8859-1] Thu Oct 15 18:47:26 2009
@@ -655,21 +655,21 @@
(InitialTeb->PreviousStackLimit == NULL))
{
//
- // Use grandparent TEB values
- //
- Teb->Tib.StackBase = InitialTeb->PreviousStackBase;
- Teb->Tib.StackLimit = InitialTeb->PreviousStackLimit;
- }
- else
- {
- //
// Use initial TEB values
//
Teb->Tib.StackBase = InitialTeb->StackBase;
Teb->Tib.StackLimit = InitialTeb->StackLimit;
Teb->DeallocationStack = InitialTeb->AllocatedStackBase;
}
-
+ else
+ {
+ //
+ // Use grandparent TEB values
+ //
+ Teb->Tib.StackBase = InitialTeb->PreviousStackBase;
+ Teb->Tib.StackLimit = InitialTeb->PreviousStackLimit;
+ }
+
//
// Initialize the static unicode string
//