wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function.
This commit is contained in:
parent
41da56a05f
commit
359cd00982
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue