[2/5] webservices: Set event handles to NULL on error.

Hans Leidekker hans at codeweavers.com
Tue Oct 3 09:14:42 CDT 2017


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/webservices/channel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index 08e04935d3..ef37095c00 100644
--- a/dlls/webservices/channel.c
+++ b/dlls/webservices/channel.c
@@ -166,8 +166,11 @@ static HRESULT start_queue( struct queue *queue )
 
 error:
     CloseHandle( queue->wait );
+    queue->wait   = NULL;
     CloseHandle( queue->cancel );
+    queue->cancel = NULL;
     CloseHandle( queue->ready );
+    queue->ready  = NULL;
     return hr;
 }
 
-- 
2.11.0




More information about the wine-patches mailing list