Commit 4e0b5829 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fix compile error on non-i386.

parent 9d8036e1
...@@ -119,8 +119,10 @@ void stack_backtrace(DWORD tid, BOOL noisy) ...@@ -119,8 +119,10 @@ void stack_backtrace(DWORD tid, BOOL noisy)
return; return;
} }
memset(&ctx, 0, sizeof(ctx)); 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 || if (SuspendThread(thread->handle) == -1 ||
!GetThreadContext(thread->handle, &ctx)) !GetThreadContext(thread->handle, &ctx))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment