wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function.

This commit is contained in:
Kirill K. Smirnov 2008-08-02 21:03:05 +04:00 committed by Alexandre Julliard
parent 41da56a05f
commit 359cd00982

View file

@ -1434,7 +1434,7 @@ enum init_return WCUSER_InitBackend(struct inner_data* data)
RegisterClass(&wndclass);
CreateWindow(wndclass.lpszClassName, NULL,
data->hWnd = CreateWindow(wndclass.lpszClassName, NULL,
WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_HSCROLL|WS_VSCROLL,
CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, 0, 0, wndclass.hInstance, data);
if (!data->hWnd) return init_not_supported;