Commit Graph

269 Commits

Author SHA1 Message Date
Sebastian Lackner 348fcb18af webservices: Fix uninitialized variable in WsWriteArray.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 10:18:02 +01:00
Sebastian Lackner b665b05166 webservices: Return the correct HRESULT on error.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 10:18:00 +01:00
Sebastian Lackner 0a3dbf0eb0 webservices: Don't set is_addressed when an error occurred.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 10:17:59 +01:00
Sebastian Lackner 3c6c6a3cae webservices: Unlock critical section before returning.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 10:17:57 +01:00
Hans Leidekker 36c5252265 webservices: Protect readers with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:50 +01:00
Hans Leidekker dea8708079 webservices: Protect heaps with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:49 +01:00
Hans Leidekker f261a830c4 webservices: Protect errors with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:47 +01:00
Hans Leidekker bf589507cd webservices: Protect writers with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:45 +01:00
Hans Leidekker fc30e2054c webservices: Protect proxies with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:43 +01:00
Hans Leidekker 4cd4f7c4ca webservices: Protect channels with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:41 +01:00
Hans Leidekker 2422fe8457 webservices: Protect messages with a critical section.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:39 +01:00
Hans Leidekker c6a392b984 webservices: Implement WS_HEAP_PROPERTY_REQUESTED_SIZE and WS_HEAP_PROPERTY_ACTUAL_SIZE.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:37 +01:00
Hans Leidekker 46315d8d27 webservices: Enforce the heap limit.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 16:44:49 +01:00
Francois Gouget 304bd8e203 webservices: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
And standardize their formatting and type names.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 12:01:50 +01:00
Hans Leidekker e231ee53b4 webservices/tests: Add an empty response message test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:16:33 +01:00
Hans Leidekker 2c1ce1a025 webservices/tests: Add more tests for WsReadEnvelopeStart.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:16:31 +01:00
Hans Leidekker a0ea3bd741 webservices/tests: Add helpers to set various description structures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:16:29 +01:00
Hans Leidekker aaab5410a1 webservices: Fix use of month as array index.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:16:27 +01:00
Hans Leidekker 35c09b52d9 webservices: Set and restore the full floating point control word.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:44 +01:00
Austin English 59112f2194 webservices: Allocate enough memory for WS_XML_TEXT_TYPE_DOUBLE on Valgrind.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 13:30:41 +01:00
Hans Leidekker 3b050d615d webservices/tests: Add a helper to print the contents of the output buffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 13:30:39 +01:00
Hans Leidekker e4288daa62 webservices: Add support for serializing array parameters in WsCall.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-17 10:22:49 -06:00
Hans Leidekker 0a23523313 webservices: Add support for repeating element field mappings in WsWriteType.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-17 10:22:46 -06:00
Hans Leidekker 43e213e24c webservices: Fix calculation of the end of a UTF-8 sequence.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-17 10:22:43 -06:00
Hans Leidekker 28f66b2a34 webservices/tests: Fix argument order in WsCreateMessage calls (Clang).
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-17 10:22:40 -06:00
Hans Leidekker f90f1f88a9 webservices/tests: Mark some test results as broken.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-17 10:22:37 -06:00
Hans Leidekker d91f985e22 webservices: Implement WsCall.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:40:05 +02:00
Hans Leidekker 5eb0971be8 webservices: Explicitly pass the offset to read_type_struct_field.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:40:03 +02:00
Hans Leidekker 02ee6bda54 webservices: Add a stub implementation of WS_TYPE_ATTRIBUTE_FIELD_MAPPING in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:40:01 +02:00
Hans Leidekker cbc5193e0e webservices: Implement WsReadChars.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:39:58 +02:00
Hans Leidekker ec30db2e01 webservices: Implement WsReadCharsUtf8.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:39:51 +02:00
Hans Leidekker 4951f5468c webservices: Implement WsReadBytes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 13:39:38 +02:00
Hans Leidekker 459b7caeb2 webservices: Implement WS_STRUCT_IGNORE_TRAILING_ELEMENT_CONTENT.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:41 +02:00
Hans Leidekker 829b225546 webservices: Fix node insertion in the reader when the current node is an end element.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:36 +02:00
Hans Leidekker ad57c7c72a webservices: Determine field size from write options and type size.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:32 +02:00
Hans Leidekker b26b265561 webservices: WS_FIELD_OPTIONAL takes precedence over WS_FIELD_NILLABLE.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:28 +02:00
Hans Leidekker b2fe675791 webservices: Handle nil elements in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:22 +02:00
Hans Leidekker 9599479ed3 webservices/tests: Add more text type tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:19 +02:00
Hans Leidekker 6cd80610c8 webservices: Strip trailing zeros from time fraction.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:16 +02:00
Akihiro Sagawa b98293e405 webservices: Add support for decoding supplementary characters' references.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:24 +02:00
Akihiro Sagawa dd4c126e95 webservices: Add support for decoding decimal numeric character references.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:23 +02:00
Akihiro Sagawa 064edd2d8b webservices: Avoid decoding a nul character reference.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:21 +02:00
Marcus Meissner 9767b5ebcf 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>
2016-10-10 21:10:12 +02:00
Hans Leidekker c8a90e5de9 webservices: Add support for writing WS_BYTES values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:52 +02:00
Hans Leidekker 8ce55bc98f webservices: Add support for reading WS_BYTES values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:51 +02:00
Hans Leidekker 503d152bfb webservices: Add support for writing WS_DATETIME values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:51 +02:00
Michael Stefaniuc 06072b447e webservices/tests: Use IsEqualGUID() to compare GUIDs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 22:40:49 +09:00
Sebastian Lackner cece771b58 webservices: Correctly grow buffer size in receive_message.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 17:47:34 +09:00
Sebastian Lackner 9ef108ad6a webservices: Do not return uninitialized hr from write_headers_transport.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 17:47:32 +09:00
Hans Leidekker dc014df696 webservices: Implement WsReceiveMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:46 +09:00