fix #780 (error when dragging mouse up out of debugger box)
This commit is contained in:
parent
33ad5a1e4d
commit
984d9b0035
|
@ -1677,6 +1677,9 @@ BOOL CALLBACK IDC_DEBUGGER_DISASSEMBLY_WndProc(HWND hwndDlg, UINT uMsg, WPARAM w
|
||||||
mouse_x = GET_X_LPARAM(lParam);
|
mouse_x = GET_X_LPARAM(lParam);
|
||||||
mouse_y = GET_Y_LPARAM(lParam);
|
mouse_y = GET_Y_LPARAM(lParam);
|
||||||
|
|
||||||
|
if(mouse_y<0 || mouse_x<0)
|
||||||
|
break;
|
||||||
|
|
||||||
tmp = mouse_y / debugSystem->disasmFontHeight;
|
tmp = mouse_y / debugSystem->disasmFontHeight;
|
||||||
if (tmp < (int)disassembly_addresses.size())
|
if (tmp < (int)disassembly_addresses.size())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue