summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-04 03:06:13 -0400
committerLioncash <mathew1800@gmail.com>2014-08-04 03:15:29 -0400
commitc051ae333818954dbf056340b0fad8dddf5ecbff (patch)
tree83b1c384f14d5f4bc5e49cdf56811207ac8adcd2 /Source/Core/DolphinWX/Debugger/CodeView.cpp
parent6befa34b609797b4c48dd45b0f0a7adeba8d8a40 (diff)
DolphinWX: Ensure the code view string vector is always a size of two.
This way if any entries are not populated, then an empty string will be used.
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;