Commit Graph

237 Commits

Author SHA1 Message Date
Alexandre Julliard afc721f0f1 inetcomm: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-06 09:01:34 +02:00
Piotr Caban df019afaa3 inetcomm: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 19:50:40 +02:00
Nikolay Sivov 05f6769f24 inetcomm: Fix a leak on DeleteProp() (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 11:15:26 +01:00
Alex Henrie 11f8826c13 inetcomm: Make several constants static.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-04 16:13:10 +01:00
Michael Stefaniuc 9b4f0d7652 inetcomm: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:42:20 +02:00
Michael Stefaniuc 0a74c8d24a inetcomm/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 23:50:09 +02:00
Michael Stefaniuc b54b07f1db inetcomm: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:53 +01:00
André Hentschel ad40af14ac inetcomm/tests: Don't test function directly when reporting GetLastError().
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 11:10:44 +01:00
Fabian Maurer 6641efad7d inetcomm: In SMTPTransport_ParseResponse remove unneeded statement (cppcheck).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:58:17 +02:00
Nikolay Sivov fe6367aed7 inetcomm: Implemented IMimeBody::GetClassID().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:22 +02:00
Nikolay Sivov 5557081956 inetcomm: Release previously set data (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:10 +02:00
Nikolay Sivov aca1636f2c inetcomm/tests: Return interface pointer for test stream.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:07:58 +02:00
Nikolay Sivov dcc545be21 inetcomm: Fixed buffer leak on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 10:07:43 +02:00
Nikolay Sivov 8b67cfb8e4 inetcomm/tests: Fix test stream leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:39:34 +01:00
Francois Gouget 6b2dbe6cf6 inetcomm/tests: A spelling fix in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 17:00:05 +01:00
Jacek Caban 51e1a08893 inetcomm: Return S_FALSE if no data is returned in IInternetProtocol::Read.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-06 13:48:50 +01:00
Jacek Caban 0672bfa216 inetcomm: Added support for decoding quoted-printable data.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:50 +01:00
Jacek Caban 07af9d0db3 inetcomm: Added mhtml binding tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:49 +01:00
Jacek Caban cf8e259eb6 inetcomm: Added support for binding mhtml protocol handler.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:49 +01:00
Jacek Caban 3f644cb0bf inetcomm: Added IInternetProtocolInfo::CombineUrl implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:49 +01:00
Jacek Caban 37792a266d inetcomm: Added MimeOleObjectFromMoniker semi-stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:49 +01:00
Jacek Caban 242cbb1673 inetcomm: Added tests reading MHTML page as MIME message.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:43 +01:00
Jacek Caban eb0bd22312 inetcomm: Removed unneeded type check in init_content_type.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:43 +01:00
Jacek Caban 56dc24695e inetcomm: Read content encoding from MIME header.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:43 +01:00
Jacek Caban dec243fd2a inetcomm: Don't include headers in data stream in create_sub_body.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:43 +01:00
Jacek Caban 3ccba10a02 inetcomm: Properly handle boundary in the beginning of body stream in create_body_offset_list.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:42 +01:00
Jacek Caban 9c01a94b7b inetcomm: Use relative seek in copy_headers_to_buf.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:42 +01:00
Jacek Caban 915acd68de inetcomm: Added support for decoding base64 in IMimeBody::GetData.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:26 +01:00
Jacek Caban 3c8f5c581d inetcomm: Test current encoding in test_SetData.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:22 +01:00
Jacek Caban b0902a487d inetcomm/tests: Added more IMimeBody::SetData and GetData tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:19 +01:00
Jacek Caban c99b874a68 inetcomm/tests: Added a helper for creating stream from string.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:14 +01:00
Jacek Caban 0b8066674b inetcomm: Return a new instance of stream in IMimeBody::GetData.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:10 +01:00
Jacek Caban 393512d03b inetcomm: Don't restore base stream position in sub stream Read.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:06 +01:00
Jacek Caban bb5056eaf4 inetcomm: Moved sub_stream_t implementation before MimeBody implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:08:03 +01:00
Jacek Caban a1d0c6d721 inetcomm: Added COM aggregation support to MimeHtmlProtocol object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 19:05:53 +01:00
Jacek Caban fe3e5b9c31 inetcomm: Added IInternetProtocolInfo stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 19:05:50 +01:00
Jacek Caban 6832273ed8 inetcomm: Added MimeHtmlProtocol stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 15:51:51 +01:00
Jacek Caban d5d9aa361a inetcomm: Register mhtml protocol handler.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 15:51:47 +01:00
Alistair Leslie-Hughes 002af352fa inetcomm/tests: Add Attachment tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 00:20:31 +09:00
Alistair Leslie-Hughes c40001cdc4 inetcomm: Add MimeOleObjectFromMoniker stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:37 +09:00
Alistair Leslie-Hughes ed880969b3 inetcomm: GetBody returns MIME_E_NOT_FOUND when no parent found.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-16 15:56:21 +09:00
Alistair Leslie-Hughes b8b7db8be8 inetcomm: Improve IMimeBody GetHandle return value.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-16 15:56:16 +09:00
Alistair Leslie-Hughes 16231678ca inetcomm: Support LPSTR to LPWSTR conversion in GetProp.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 16:59:42 +09:00
Alistair Leslie-Hughes bf02672359 inetcomm: Return S_OK from IMimeMessgae Commit.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 16:59:08 +09:00
Alistair Leslie-Hughes 6e6a6ff9d5 inetcomm: Ignore option OID_CLEANUP_TREE_ON_SAVE.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 16:59:04 +09:00
Alistair Leslie-Hughes 2854c92d63 inetcomm: Implement IMimeBody DeleteProp.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 16:59:00 +09:00
Alistair Leslie-Hughes 79762537a7 inetcomm: Implement IMimeBody GetPropInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 22:57:44 +09:00
Alistair Leslie-Hughes 943b376dba inetcomm: Add missing default properties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-02 13:26:42 +09:00
Alistair Leslie-Hughes 4c92dd98a4 inetcomm: Add support for PID ids in MimeBody Get/SetProp.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 11:42:38 +09:00
Alistair Leslie-Hughes cec1281cd7 inetcomm: Ignore OID_TRANSMIT_BODY_ENCODING value in IMimeBody SetOption.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 16:23:11 +09:00