Hans Leidekker : webservices: Set event handles to NULL on error.

Alexandre Julliard julliard at winehq.org
Tue Oct 3 15:39:52 CDT 2017


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Oct  3 16:14:42 2017 +0200

webservices: Set event handles to NULL on error.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/channel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index 08e0493..ef37095 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;
 }
 




More information about the wine-cvs mailing list