Merged THDB and TEB structures.
Made SetLastError(), GetCurrentThreadId() and PROCESS_Current() inline.
diff --git a/debugger/stack.c b/debugger/stack.c
index f41f25c..dd64c5c 100644
--- a/debugger/stack.c
+++ b/debugger/stack.c
@@ -223,7 +223,7 @@
is16 = TRUE;
}
- next_switch = THREAD_Current()->cur_stack;
+ next_switch = NtCurrentTeb()->cur_stack;
if (is16) {
if (IsBadReadPtr((STACK32FRAME*)next_switch, sizeof(STACK32FRAME))) {
fprintf( stderr, "Bad stack frame %p\n", (STACK32FRAME*)next_switch );