server: Fix console create function.

XueFeng Chang welfear at gmail.com
Mon Feb 22 21:54:28 CST 2010


Check create_event return value.
---
 server/console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/console.c b/server/console.c
index a79dc67..3758a71 100644
--- a/server/console.c
+++ b/server/console.c
@@ -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;
-- 
1.6.0.4




More information about the wine-patches mailing list