[PATCH 3/4] webservices: Handle WS_XML_TEXT_TYPE_INT32 in text_to_uint64.

Hans Leidekker hans at codeweavers.com
Tue Mar 17 09:35:44 CDT 2020


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

diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c
index b328bb779e..bf29990923 100644
--- a/dlls/webservices/reader.c
+++ b/dlls/webservices/reader.c
@@ -5051,6 +5051,13 @@ static HRESULT text_to_uint64( const WS_XML_TEXT *text, UINT64 *val )
         hr = str_to_uint64( text_utf8->value.bytes, text_utf8->value.length, MAX_UINT64, val );
         break;
     }
+    case WS_XML_TEXT_TYPE_INT32:
+    {
+        const WS_XML_INT32_TEXT *text_int32 = (const WS_XML_INT32_TEXT *)text;
+        *val = text_int32->value;
+        hr = S_OK;
+        break;
+    }
     case WS_XML_TEXT_TYPE_INT64:
     {
         const WS_XML_INT64_TEXT *text_int64 = (const WS_XML_INT64_TEXT *)text;
-- 
2.20.1




More information about the wine-devel mailing list