diff --git a/trunk/src/drivers/win/debugger.cpp b/trunk/src/drivers/win/debugger.cpp index a951c45b..eb848c6d 100644 --- a/trunk/src/drivers/win/debugger.cpp +++ b/trunk/src/drivers/win/debugger.cpp @@ -1676,6 +1676,9 @@ BOOL CALLBACK IDC_DEBUGGER_DISASSEMBLY_WndProc(HWND hwndDlg, UINT uMsg, WPARAM w mouse_x = GET_X_LPARAM(lParam); mouse_y = GET_Y_LPARAM(lParam); + + if(mouse_y<0 || mouse_x<0) + break; tmp = mouse_y / debugSystem->disasmFontHeight; if (tmp < (int)disassembly_addresses.size())