(from <Someone>)
Fix crash. WIN_MAP was used without before initialization in mswin_select_map_mode
This commit is contained in:
@@ -178,7 +178,6 @@ int mswin_map_mode(HWND hWnd, int mode)
|
||||
SIZE mapSize;
|
||||
|
||||
data = (PNHMapWindow)GetWindowLong(hWnd, GWL_USERDATA);
|
||||
if (!data) return mode;
|
||||
if( mode == data->mapMode ) return mode;
|
||||
|
||||
oldMode = data->mapMode;
|
||||
|
||||
Reference in New Issue
Block a user