From 4e0b582903c5a8fb4a1f5884e554d077ecaaaef9 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 22 Jun 2004 02:06:37 +0000 Subject: [PATCH] Fix compile error on non-i386. --- programs/winedbg/stack.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c index ab59ef64947..7ab5a9b13fb 100644 --- a/programs/winedbg/stack.c +++ b/programs/winedbg/stack.c @@ -119,8 +119,10 @@ void stack_backtrace(DWORD tid, BOOL noisy) return; } memset(&ctx, 0, sizeof(ctx)); - ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_SEGMENTS; - + ctx.ContextFlags = CONTEXT_CONTROL; +#ifdef CONTEXT_SEGMENTS + ctx.ContextFlags |= CONTEXT_SEGMENTS; +#endif if (SuspendThread(thread->handle) == -1 || !GetThreadContext(thread->handle, &ctx)) {