Fix compile error on non-i386.

This commit is contained in:
Eric Pouech 2004-06-22 02:06:37 +00:00 committed by Alexandre Julliard
parent 9d8036e1d8
commit 4e0b582903
1 changed files with 4 additions and 2 deletions

View File

@ -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))
{