9 #include <rosrtl/thread.h>
11 NTSTATUS NTAPI RtlpRosValidateLinearUserStack
18 /* the stack has a null or negative (relatively to its direction) length */
20 Direction: TRUE for down-top, FALSE for top-down
22 Direction == TRUE and positive stack size: OK
23 Direction == TRUE and negative stack size: error
24 Direction == FALSE and positive stack size: error
25 Direction == FALSE and negative stack size: OK
29 StackBase == StackLimit ||
30 (Direction ^ ((PCHAR)StackBase < (PCHAR)StackLimit))
32 return STATUS_BAD_INITIAL_STACK;
35 return STATUS_SUCCESS;