Merge pull request #1532 from shygoo2/fix-asm-editor

[Debugger] Fix opcode editor in the commands window
This commit is contained in:
zilmar 2018-12-28 09:35:37 +10:30 committed by GitHub
commit ca0dfff095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -124,6 +124,7 @@ LRESULT CDebugCommandsView::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARA
m_bIgnoreAddrChange = true;
m_AddressEdit.SetValue(0x80000000, false, true);
ShowAddress(0x80000000, TRUE);
m_bIgnoreAddrChange = false;
if (isStepping())
{
@ -1253,7 +1254,7 @@ void CDebugCommandsView::GotoEnteredAddress()
void CDebugCommandsView::BeginOpEdit(uint32_t address)
{
uint32_t opcode;
if (m_Debugger->DebugLW_VAddr(address, opcode))
if (!m_Debugger->DebugLW_VAddr(address, opcode))
{
return;
}