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…
Reference in New Issue