mirror of https://github.com/PCSX2/pcsx2.git
Fix segfault in non-dev build by adding extra check for NULL.
This commit is contained in:
parent
390245806a
commit
ec0f9e49c3
|
@ -529,7 +529,7 @@ public:
|
|||
|
||||
GSFrame* GetGsFramePtr() const { return (GSFrame*)wxWindow::FindWindowById( m_id_GsFrame ); }
|
||||
MainEmuFrame* GetMainFramePtr() const { return (MainEmuFrame*)wxWindow::FindWindowById( m_id_MainFrame ); }
|
||||
DisassemblyDialog* GetDisassemblyPtr() const { return (DisassemblyDialog*)wxWindow::FindWindowById( m_id_Disassembler ); }
|
||||
DisassemblyDialog* GetDisassemblyPtr() const { return m_id_Disassembler ? (DisassemblyDialog*)wxWindow::FindWindowById( m_id_Disassembler ) : NULL; }
|
||||
|
||||
void enterDebugMode();
|
||||
void leaveDebugMode();
|
||||
|
@ -749,4 +749,4 @@ extern void UI_DisableSysShutdown();
|
|||
|
||||
extern ExecutorThread& GetSysExecutorThread();
|
||||
|
||||
extern bool g_ConfigPanelChanged; //Indicates that the main config panel is open and holds unapplied changes.
|
||||
extern bool g_ConfigPanelChanged; //Indicates that the main config panel is open and holds unapplied changes.
|
||||
|
|
Loading…
Reference in New Issue