From 23817342564a9fa215a9ae1c73b7ec0c08fa8b49 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 30 Jul 2015 07:47:01 -0700 Subject: [PATCH] [PVS-Studio] Fix extra argument in fprintf() OutputTraceLine() and bad logic in DebuggerMouseClick() bug #301 --- source/Debugger/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 47c2a4f0..2dbdfc35 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -7382,7 +7382,7 @@ void OutputTraceLine () (unsigned)regs.sp, (char*) sFlags , sDisassembly - , sTarget + //, sTarget // TODO: Show target? ); } } @@ -8929,7 +8929,7 @@ void DebuggerMouseClick( int x, int y ) DebugDisplay( UPDATE_DISASM ); } else // AD 00 00 - if ((cx > 4) & (cx <= 13)) + if ((cx > 4) && (cx <= 13)) { g_bConfigDisasmOpcodesView ^= true; DebugDisplay( UPDATE_DISASM );