Detect server call failure

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Fri Mar 4 09:38:03 CST 2005


I'm not sure this is worth committing but it will save people debugging
time in case they come across this bug.

ChangeLog:
    Ulrich Czekalla <ulrich at codeweavers.com>
    Print out error message if we fail to remove message from queue
-------------- next part --------------
Index: dlls/user/message.c
===================================================================
RCS file: /home/wine/wine/dlls/user/message.c,v
retrieving revision 1.62
diff -u -p -r1.62 message.c
--- dlls/user/message.c	3 Feb 2005 16:40:20 -0000	1.62
+++ dlls/user/message.c	4 Mar 2005 15:34:19 -0000
@@ -1516,7 +1516,8 @@ static BOOL process_hardware_message( MS
         req->type   = MSG_HARDWARE;
         req->result = 0;
         req->remove = remove || !ret;
-        wine_server_call( req );
+        if (wine_server_call( req ))
+            ERR("Failed to reply to MSG_HARDWARE message. Message may not be removed from queue.\n");
     }
     SERVER_END_REQ;
     return ret;


More information about the wine-patches mailing list