summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-04 03:18:14 -0400
committerLioncash <mathew1800@gmail.com>2014-08-04 03:18:14 -0400
commit933a7c2facc19cc61b17f48da41a8716356a4a2c (patch)
treef4bab62d5234b80a92a7c3958b8cb6519da197a6 /Source/Core/DolphinWX/Debugger/CodeView.cpp
parent5891ff18554f78d2ca43ba964a706d794348819f (diff)
parentc051ae333818954dbf056340b0fad8dddf5ecbff (diff)
Merge pull request #734 from lioncash/debug
DolphinWX: Ensure the code view string vector is always a size of two.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp
index 7b18a5e9d8..80b5598dfc 100644
--- a/Source/Core/DolphinWX/Debugger/CodeView.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp
@@ -478,9 +478,10 @@ void CCodeView::OnPaint(wxPaintEvent& event)
{
std::vector<std::string> dis;
SplitString(m_debugger->Disassemble(address), '\t', dis);
+ dis.resize(2);
static const size_t VALID_BRANCH_LENGTH = 10;
- const std::string& opcode = dis[0];
+ const std::string& opcode = dis[0];
const std::string& operands = dis[1];
std::string desc;