mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 18:32:47 +00:00
Gui: Replace sscanf with ToULong
This commit is contained in:
parent
db1ca2f89f
commit
0c5526f2fd
@ -455,7 +455,7 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event))
|
|||||||
if(diag->ShowModal() == wxID_OK)
|
if(diag->ShowModal() == wxID_OK)
|
||||||
{
|
{
|
||||||
u64 pc = CPU ? CPU->PC : 0x0;
|
u64 pc = CPU ? CPU->PC : 0x0;
|
||||||
sscanf(p_pc->GetValue(), "%llx", &pc);
|
p_pc->GetValue().ToULong(&pc, 16);
|
||||||
Emu.GetMarkedPoints().push_back(pc);
|
Emu.GetMarkedPoints().push_back(pc);
|
||||||
remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);
|
remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);
|
||||||
ShowAddr(CentrePc(pc));
|
ShowAddr(CentrePc(pc));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user