From 4b7b652f47db931e2ff99c08a2ee7f7848e2d15c Mon Sep 17 00:00:00 2001 From: luigi__ Date: Tue, 7 Apr 2009 16:37:01 +0000 Subject: [PATCH] Hacky fix for the crash of the IO reg view tool. Reason of the crash: a WM_COMMAND message was being sent for IDC_AUTO_UPDATE_SECS before the WM_INITDIALOG message was sent. I can't figure out why. --- desmume/src/windows/IORegView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/windows/IORegView.cpp b/desmume/src/windows/IORegView.cpp index 0ab91e2ab..fc6a5a0a7 100644 --- a/desmume/src/windows/IORegView.cpp +++ b/desmume/src/windows/IORegView.cpp @@ -130,6 +130,7 @@ BOOL CALLBACK IoregView_Proc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa SendMessage(hwnd, WM_COMMAND, IDC_REFRESH, 0); return 1; case WM_COMMAND : + if(IORegView == NULL) return 0; switch (LOWORD (wParam)) { case IDC_FERMER :