Fix compile error on non-i386.
This commit is contained in:
parent
9d8036e1d8
commit
4e0b582903
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue