winedbg: Only add ContextFlags which are defined.

This commit is contained in:
André Hentschel 2010-09-08 21:55:37 +02:00 committed by Alexandre Julliard
parent 859a1d0d44
commit ab873c0d25
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ BOOL dbg_attach_debuggee(DWORD pid, BOOL cofe)
static unsigned dbg_fetch_context(void)
{
dbg_context.ContextFlags = CONTEXT_CONTROL
| CONTEXT_INTEGER | CONTEXT_FLOATING_POINT
| CONTEXT_INTEGER
#ifdef CONTEXT_FLOATING_POINT
| CONTEXT_FLOATING_POINT
#endif
#ifdef CONTEXT_SEGMENTS
| CONTEXT_SEGMENTS
#endif