mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function.
This commit is contained in:
parent
41da56a05f
commit
359cd00982
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue