win32: mapview: fix crash bug which should have rendered it useless, but was mysteriously not for anyone until just now for me

This commit is contained in:
zeromus 2010-06-22 02:59:33 +00:00
parent 499826aab3
commit 60c5b06bc8
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ BOOL CALLBACK ViewMapsProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPara
memset(MapView, 0, sizeof(MapView)); memset(MapView, 0, sizeof(MapView));
MapView->clear = true; MapView->clear = true;
MapView->autoup_secs = 1; MapView->autoup_secs = 1;
MapView->map = 0;
MapView->lcd = 0;
SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN), SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN),
UDM_SETRANGE, 0, MAKELONG(99, 1)); UDM_SETRANGE, 0, MAKELONG(99, 1));
SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN), SendMessage(GetDlgItem(hwnd, IDC_AUTO_UPDATE_SPIN),