Skip to content

Commit

Permalink
Merge pull request #734 from lioncash/debug
Browse files Browse the repository at this point in the history
DolphinWX: Ensure the code view string vector is always a size of two.
  • Loading branch information
lioncash committed Aug 4, 2014
2 parents 5891ff1 + c051ae3 commit 933a7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinWX/Debugger/CodeView.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 933a7c2

Please sign in to comment.