DebuggerViews: Fixed nullptr dereferences

This commit is contained in:
Sepalani committed 2015-12-27 19:57:58 +04:00
1 parent 97cd723492
commit 4d3f05ddf8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -261,7 +261,7 @@ void CWatchView::OnMouseDownR(wxGridEvent& event)
void CWatchView::OnPopupMenu(wxCommandEvent& event)
{
CFrame* main_frame = (CFrame*)(GetParent()->GetParent());
CFrame* main_frame = static_cast<CFrame*>(GetGrandParent()->GetParent());
CCodeWindow* code_window = main_frame->g_pCodeWindow;
CWatchWindow* watch_window = code_window->m_WatchWindow;
CMemoryWindow* memory_window = code_window->m_MemoryWindow;