Module: wine Branch: master Commit: 9767b5ebcf15d40811448cd013e0c55a20edfbcd URL: http://source.winehq.org/git/wine.git/?a=commit;h=9767b5ebcf15d40811448cd013...
Author: Marcus Meissner marcus@jet.franken.de Date: Sun Oct 9 09:40:57 2016 +0200
webservices: Add error checking (Coverity).
Signed-off-by: Marcus Meissner marcus@jet.franken.de Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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;