From 359cd00982e86d899bbdb5a14a69a398de646c3c Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Sat, 2 Aug 2008 21:03:05 +0400 Subject: [PATCH] wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function. --- programs/wineconsole/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index 6ded183bc75..03157aa12e4 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -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;