fix #780 (error when dragging mouse up out of debugger box)

This commit is contained in:
zeromus 2017-03-06 18:08:55 +00:00
parent 33ad5a1e4d
commit 984d9b0035
1 changed files with 3 additions and 0 deletions

View File

@ -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())