DolphinWX: Fix a possible crash when setting debugger memory values.

This commit is contained in:
Lioncash 2014-07-19 19:59:44 -04:00
parent 44e43fe5c3
commit 298425920a
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
{
if (!Memory::IsInitialized())
{
PanicAlertT("Cannot set uninitialized memory.");
return;
}
std::string str_addr = WxStrToStr(addrbox->GetValue());
std::string str_val = WxStrToStr(valbox->GetValue());
u32 addr;