fix hang in symbolic debugger syntax highlighting in rare cases. fixes #18

This commit is contained in:
zeromus 2018-11-12 03:19:07 -05:00
parent 286875f9ef
commit 717153ac19
1 changed files with 1 additions and 0 deletions

View File

@ -447,6 +447,7 @@ void HighlightSyntax(int lines)
SendDlgItemMessage(hDebug, IDC_DEBUGGER_DISASSEMBLY, EM_SETSEL, (WPARAM)newline.chrg.cpMin + 20, (LPARAM)opbreak);
int oldline = newline.chrg.cpMin;
newline.chrg.cpMin = SendDlgItemMessage(hDebug, IDC_DEBUGGER_DISASSEMBLY, EM_FINDTEXT, (WPARAM)FR_DOWN, (LPARAM)&newline) + 1;
if(newline.chrg.cpMin == 0) break;
// symbolic address
if (debug_str[newline.chrg.cpMin - 2] == ':')
{