comparison os2/dw.c @ 965:2b1b9b995748

Fixed a crash in _free_window_memory() when attempting to free memory on the scrollbox client area on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 May 2011 17:51:35 +0000
parents 6c6b5bbd3a26
children 87dc0f5f96d0
comparison
equal deleted inserted replaced
964:6c6b5bbd3a26 965:2b1b9b995748
4301 0,0,2000,1000, hwndframe, HWND_TOP, FID_VERTSCROLL, NULL, NULL); 4301 0,0,2000,1000, hwndframe, HWND_TOP, FID_VERTSCROLL, NULL, NULL);
4302 WinCreateWindow(hwndframe, WC_SCROLLBAR, "", WS_VISIBLE | SBS_AUTOTRACK | SBS_HORZ, 4302 WinCreateWindow(hwndframe, WC_SCROLLBAR, "", WS_VISIBLE | SBS_AUTOTRACK | SBS_HORZ,
4303 0,0,2000,1000, hwndframe, HWND_TOP, FID_HORZSCROLL, NULL, NULL); 4303 0,0,2000,1000, hwndframe, HWND_TOP, FID_HORZSCROLL, NULL, NULL);
4304 client = WinCreateWindow(hwndframe, WC_FRAME, "", WS_VISIBLE | WS_CLIPCHILDREN, 4304 client = WinCreateWindow(hwndframe, WC_FRAME, "", WS_VISIBLE | WS_CLIPCHILDREN,
4305 0,0,2000,1000, NULLHANDLE, HWND_TOP, FID_CLIENT, NULL, NULL); 4305 0,0,2000,1000, NULLHANDLE, HWND_TOP, FID_CLIENT, NULL, NULL);
4306 WinSetWindowPtr(client, QWP_USER, calloc(sizeof(Box), 1));
4306 WinSetParent(tmpbox, client, FALSE); 4307 WinSetParent(tmpbox, client, FALSE);
4307 WinSetWindowPtr(hwndframe, QWP_USER, blah); 4308 WinSetWindowPtr(hwndframe, QWP_USER, blah);
4308 dw_window_set_data(hwndframe, "_dw_resizebox", (void *)tmpbox); 4309 dw_window_set_data(hwndframe, "_dw_resizebox", (void *)tmpbox);
4309 dw_window_set_data(hwndframe, "_dw_box", (void *)box); 4310 dw_window_set_data(hwndframe, "_dw_box", (void *)box);
4310 dw_window_set_color(hwndframe, DW_CLR_PALEGRAY, DW_CLR_PALEGRAY); 4311 dw_window_set_color(hwndframe, DW_CLR_PALEGRAY, DW_CLR_PALEGRAY);