Debugger: fixed Bookmarks naming
This commit is contained in:
parent
84bb3a8d1d
commit
973c6cb9bb
|
@ -742,14 +742,20 @@ void NameDebuggerBookmark(HWND hwnd)
|
||||||
return;
|
return;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
strcpy(bookmarkDescription, bookmarks_name[selectedItem].c_str());
|
if (bookmarks_name[selectedItem].size())
|
||||||
// try to find the same address in bookmarks
|
|
||||||
for (int i = bookmarks_addr.size() - 1; i>= 0; i--)
|
|
||||||
{
|
{
|
||||||
if (i != selectedItem && bookmarks_addr[i] == bookmarks_addr[selectedItem])
|
strcpy(bookmarkDescription, bookmarks_name[selectedItem].c_str());
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
bookmarkDescription[0] = 0;
|
||||||
|
// try to find the same address in bookmarks
|
||||||
|
for (int i = bookmarks_addr.size() - 1; i>= 0; i--)
|
||||||
{
|
{
|
||||||
strcpy(bookmarkDescription, bookmarks_name[i].c_str());
|
if (i != selectedItem && bookmarks_addr[i] == bookmarks_addr[selectedItem] && bookmarks_name[i].size())
|
||||||
break;
|
{
|
||||||
|
strcpy(bookmarkDescription, bookmarks_name[i].c_str());
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Show the bookmark name dialog
|
// Show the bookmark name dialog
|
||||||
|
|
Loading…
Reference in New Issue