PVS-Studio fix: Incorrect format. A different number of actual arguments is expected while calling 'sprintf' function. The EFlags value can be read from the Kernel Debug console.

This commit is contained in:
Echelon9 2012-11-26 02:23:29 +11:00
parent 964c0038a8
commit db33acdc7c
1 changed files with 2 additions and 2 deletions

View File

@ -789,7 +789,7 @@ extern int EmuException(LPEXCEPTION_POINTERS e)
" Press Abort to terminate emulation.\n"
" Press Retry to debug.\n"
" Press Ignore to continue emulation.",
e->ContextRecord->Eip, e->ContextRecord->EFlags);
e->ContextRecord->Eip);
e->ContextRecord->Eip += 1;
@ -821,7 +821,7 @@ extern int EmuException(LPEXCEPTION_POINTERS e)
"\n"
" Press \"OK\" to terminate emulation.\n"
" Press \"Cancel\" to debug.",
e->ExceptionRecord->ExceptionCode, e->ContextRecord->Eip, e->ContextRecord->EFlags);
e->ExceptionRecord->ExceptionCode, e->ContextRecord->Eip);
if(MessageBox(g_hEmuWindow, buffer, "Cxbx", MB_ICONSTOP | MB_OKCANCEL) == IDOK)
{