Gui: Replace sscanf with ToULong

This commit is contained in:
Clayton Walker 2014-04-27 17:11:03 -06:00
parent db1ca2f89f
commit 0c5526f2fd

View File

@ -455,7 +455,7 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event))
if(diag->ShowModal() == wxID_OK)
{
u64 pc = CPU ? CPU->PC : 0x0;
sscanf(p_pc->GetValue(), "%llx", &pc);
p_pc->GetValue().ToULong(&pc, 16);
Emu.GetMarkedPoints().push_back(pc);
remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);
ShowAddr(CentrePc(pc));