Marcus Meissner : server: Handle NULL thread in send_hardware_message ( Coverity).

Alexandre Julliard julliard at winehq.org
Thu Jan 29 09:15:18 CST 2009


Module: wine
Branch: master
Commit: 3b86f463b5cb6217fa835c67c9325f8a592fd1a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3b86f463b5cb6217fa835c67c9325f8a592fd1a4

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Jan 28 23:58:38 2009 +0100

server: Handle NULL thread in send_hardware_message (Coverity).

---

 server/queue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/queue.c b/server/queue.c
index ab524a7..bc0aea7 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -1720,7 +1720,7 @@ DECL_HANDLER(send_hardware_message)
 
     if (!(data = mem_alloc( sizeof(*data) )))
     {
-        release_object( thread );
+        if (thread) release_object( thread );
         return;
     }
     memset( data, 0, sizeof(*data) );




More information about the wine-cvs mailing list