[PATCH 2/4] webservices: Add support for WS_XML_TEXT_TYPE_INT64 in text_to_uint32().
Hans Leidekker
hans at codeweavers.com
Tue Aug 31 06:45:53 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/webservices/reader.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c
index c30abf5acd8..69c4f2a3007 100644
--- a/dlls/webservices/reader.c
+++ b/dlls/webservices/reader.c
@@ -4992,6 +4992,14 @@ static HRESULT text_to_uint32( const WS_XML_TEXT *text, UINT64 *val )
hr = S_OK;
break;
}
+ case WS_XML_TEXT_TYPE_INT64:
+ {
+ const WS_XML_INT64_TEXT *text_int64 = (const WS_XML_INT64_TEXT *)text;
+ if (text_int64->value < 0 || text_int64->value > MAX_UINT32) return WS_E_NUMERIC_OVERFLOW;
+ *val = text_int64->value;
+ hr = S_OK;
+ break;
+ }
case WS_XML_TEXT_TYPE_UINT64:
{
const WS_XML_UINT64_TEXT *text_uint64 = (const WS_XML_UINT64_TEXT *)text;
--
2.30.2
More information about the wine-devel
mailing list