Merge pull request #734 from lioncash/debug
DolphinWX: Ensure the code view string vector is always a size of two.
This commit is contained in:
commit
933a7c2fac
|
@ -478,9 +478,10 @@ void CCodeView::OnPaint(wxPaintEvent& event)
|
||||||
{
|
{
|
||||||
std::vector<std::string> dis;
|
std::vector<std::string> dis;
|
||||||
SplitString(m_debugger->Disassemble(address), '\t', dis);
|
SplitString(m_debugger->Disassemble(address), '\t', dis);
|
||||||
|
dis.resize(2);
|
||||||
|
|
||||||
static const size_t VALID_BRANCH_LENGTH = 10;
|
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];
|
const std::string& operands = dis[1];
|
||||||
std::string desc;
|
std::string desc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue