Commit 359cd009 authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

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

parent 41da56a0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment