[NTOSKRNL] Move DPRINT1("Thread wants too much stack\n") around

To KiUserModeCallout() from MmGrowKernelStackEx().

As suggested by Thomas Faber:
"MmGrowKernelStackEx really shouldn't be DPRINT'ing."

CORE-14494
This commit is contained in:
Serge Gautherie 2019-04-25 03:22:16 +02:00 committed by Timo Kreuzer
parent cbb7ad6f5b
commit 66bf74d228
2 changed files with 9 additions and 2 deletions

View 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 */

View file

@ -405,7 +405,6 @@ MmGrowKernelStackEx(IN PVOID StackPointer,
//
// Sorry!
//
DPRINT1("Thread wants too much stack\n");
return STATUS_STACK_OVERFLOW;
}