mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
DolphinWX: Fix a possible crash when setting debugger memory values.
This commit is contained in:
parent
44e43fe5c3
commit
298425920a
@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)
|
|||||||
|
|
||||||
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
if (!Memory::IsInitialized())
|
||||||
|
{
|
||||||
|
PanicAlertT("Cannot set uninitialized memory.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
||||||
std::string str_val = WxStrToStr(valbox->GetValue());
|
std::string str_val = WxStrToStr(valbox->GetValue());
|
||||||
u32 addr;
|
u32 addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user