Kirill K. Smirnov : wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function.
Module: wine Branch: master Commit: 359cd00982e86d899bbdb5a14a69a398de646c3c URL: http://source.winehq.org/git/wine.git/?a=commit;h=359cd00982e86d899bbdb5a14a... Author: Kirill K. Smirnov <lich(a)math.spbu.ru> Date: Sat Aug 2 21:03:05 2008 +0400 wineconsole: Check return value of CreateWindow() for errors, do not rely upon callback function. --- programs/wineconsole/user.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index 6ded183..03157aa 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;
participants (1)
-
Alexandre Julliard