ntdll: Update the context on send_debug_event for any successful status.

This commit is contained in:
Alexandre Julliard 2009-04-10 12:37:22 +02:00
parent 9096368b6a
commit c709adcf16
2 changed files with 2 additions and 3 deletions

View file

@ -226,7 +226,7 @@ static NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTE
ret = wine_server_call( req );
}
SERVER_END_REQ;
if (!ret) ret = context_from_server( context, &server_context );
if (ret >= 0) context_from_server( context, &server_context );
return ret;
}

View file

@ -206,14 +206,13 @@ static LONG CALLBACK rtlraiseexception_vectored_handler(EXCEPTION_POINTERS *Exce
trace("vect. handler %08x addr:%p context.Eip:%x\n", rec->ExceptionCode,
rec->ExceptionAddress, context->Eip);
todo_wine {
todo_wine
ok(rec->ExceptionAddress == (char *)code_mem + 0xb, "ExceptionAddress at %p instead of %p\n",
rec->ExceptionAddress, (char *)code_mem + 0xb);
if (pNtCurrentTeb()->Peb->BeingDebugged)
ok((void *)context->Eax == pRtlRaiseException, "debugger managed to modify Eax to %x should be %p\n",
context->Eax, pRtlRaiseException);
}
/* check that context.Eip is fixed up only for EXCEPTION_BREAKPOINT
* even if raised by RtlRaiseException