Hans Leidekker : webservices: Simplify write_dict_string.
Alexandre Julliard
julliard at winehq.org
Wed Jan 24 16:02:31 CST 2018
Module: wine
Branch: master
Commit: 5afd702c9982f1ce6339e41d91341e23c25dc450
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5afd702c9982f1ce6339e41d91341e23c25dc450
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Jan 24 14:30:00 2018 +0100
webservices: Simplify write_dict_string.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/webservices/writer.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c
index b7dab3a..75cf7b4 100644
--- a/dlls/webservices/writer.c
+++ b/dlls/webservices/writer.c
@@ -648,10 +648,8 @@ static HRESULT write_string( struct writer *writer, const BYTE *bytes, ULONG len
static HRESULT write_dict_string( struct writer *writer, ULONG id )
{
- HRESULT hr;
if (id > 0x7fffffff) return E_INVALIDARG;
- if ((hr = write_int31( writer, id )) != S_OK) return hr;
- return S_OK;
+ return write_int31( writer, id );
}
static enum record_type get_attr_text_record_type( const WS_XML_TEXT *text, BOOL use_dict )
More information about the wine-cvs
mailing list