summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp
index 75cb555ddf..1bfc095fce 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp
+++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp
@@ -575,8 +575,10 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event)
str = wxGetTextFromUser(_(""), wxT("Op?"), wxEmptyString, this);
for (u32 addr = 0x80000000; addr < 0x80100000; addr += 4) {
const char *name = PPCTables::GetInstructionName(Memory::ReadUnchecked_U32(addr));
- if (name && !strcmp((const char *)str.mb_str(), name))
- NOTICE_LOG(POWERPC, "Found %s at %08x", str.c_str(), addr);
+ if (name && !strcmp((const char *)str.mb_str(), name)) {
+ std::string mb_str(str.mb_str());
+ NOTICE_LOG(POWERPC, "Found %s at %08x", mb_str.c_str(), addr);
+ }
}
break;
}