[PATCH] webservices: add error checking (Coverity)

Marcus Meissner marcus at jet.franken.de
Sun Oct 9 02:40:57 CDT 2016


1373480 Unchecked return value

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
 dlls/webservices/channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index 445d877..2b9c9d7 100644
--- a/dlls/webservices/channel.c
+++ b/dlls/webservices/channel.c
@@ -466,7 +466,7 @@ HRESULT WINAPI WsSendMessage( WS_CHANNEL *handle, WS_MESSAGE *msg, const WS_MESS
 
     if (!handle || !msg || !desc) return E_INVALIDARG;
 
-    WsInitializeMessage( msg, WS_REQUEST_MESSAGE, NULL, NULL );
+    if ((hr = WsInitializeMessage( msg, WS_REQUEST_MESSAGE, NULL, NULL )) != S_OK) return hr;
     if ((hr = WsAddressMessage( msg, &channel->addr, NULL )) != S_OK) return hr;
     if ((hr = message_set_action( msg, desc->action )) != S_OK) return hr;
 
-- 
2.10.0




More information about the wine-patches mailing list