Commit 4bc7c59f authored by XueFeng Chang's avatar XueFeng Chang Committed by Alexandre Julliard

server: Check create_event return value in console creation.

parent 456de200
......@@ -294,7 +294,7 @@ static struct object *create_console_input( struct thread* renderer )
console_input->win = 0;
console_input->event = create_event( NULL, NULL, 0, 1, 0, NULL );
if (!console_input->history || !console_input->evt)
if (!console_input->history || !console_input->evt || !console_input->event)
{
release_object( console_input );
return NULL;
......
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