fix #2 for message queue migration

eric pouech eric.pouech at wanadoo.fr
Sat May 19 09:16:52 CDT 2001


this one was easier to fix ;-), but I didn't investigate where this came
from...

yet

A+

-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Name: mqs2
ChangeLog: fixed a null pointer deref
GenDate: 2001/05/19 14:13:44 UTC
ModifiedFiles: server/queue.c
AddedFiles: 
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/server/queue.c,v
retrieving revision 1.5
diff -u -u -r1.5 queue.c
--- server/queue.c	2001/05/18 23:22:12	1.5
+++ server/queue.c	2001/05/19 12:38:05
@@ -244,7 +244,11 @@
                            unsigned int error, int remove )
 {
     struct message_result *res = queue->recv_result;
-    if (!res) set_error( STATUS_ACCESS_DENIED );  /* FIXME */
+    if (!res) 
+    {
+	 set_error( STATUS_ACCESS_DENIED );  /* FIXME */
+	 return;
+    }
 
     if (remove)
     {


More information about the wine-patches mailing list