[NTOSKRNL] Move DPRINT1("Thread wants too much stack\n") around
[reactos.git] / ntoskrnl / ke / i386 / usercall.c
index 8fbed38..8f59f7d 100644 (file)
@@ -282,7 +282,15 @@ KiUserModeCallout(PKCALLOUT_FRAME CalloutFrame)
         Status = MmGrowKernelStack((PVOID)InitialStack);
 
         /* Quit if we failed */
-        if (!NT_SUCCESS(Status)) return Status;
+        if (!NT_SUCCESS(Status))
+        {
+            if (Status == STATUS_STACK_OVERFLOW)
+            {
+                DPRINT1("Thread wants too much stack\n");
+            }
+
+            return Status;
+        }
     }
 
     /* Save the current callback stack and initial stack */