server: Check create_event return value in console creation.

This commit is contained in:
XueFeng Chang 2010-02-23 11:54:28 +08:00 committed by Alexandre Julliard
parent 456de20085
commit 4bc7c59f44
1 changed files with 1 additions and 1 deletions

View File

@ -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;