Commit Graph

19 Commits

Author SHA1 Message Date
Bernhard Kölbl ba9737ba82 combase: Reorder hstring_private elements.
Put the string buffer at the end of the struct to
match the Windows behaviour and avoid unnecessary
pointer arithmetic.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51017
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Bernhard Kölbl 369e4e3609 combase: Add padding and string reference pointer to hstring_header.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Bernhard Kölbl f7609ac2e6 combase: Move length from hstring_private to hstring_header.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Bernhard Kölbl 059795be42 combase: Introduce a hstring_header struct to hstring_private.
Also move the reference flag to the hstring_header struct.

Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Alexandre Julliard 6e2241a331 combase: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:46 +02:00
Sebastian Lackner 441c8dcc65 combase: Implement WindowsTrimStringEnd.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:20:07 +09:00
Sebastian Lackner 211b8b5f61 combase: Implement WindowsTrimStringStart.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:19:57 +09:00
Sebastian Lackner e39405d44d combase: Implement WindowsCompareStringOrdinal.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:19:29 +09:00
Sebastian Lackner 63f95fedfe combase: Implement WindowsConcatString.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:08 +09:00
Martin Storsjo bcac15a56f combase: Fix cornercase error handling in WindowsCreateStringReference.
When WindowsCreateStringReference is given a non-null input string,
the input string must be null terminated at the given length,
even if the input length is zero.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:07 +09:00
Sebastian Lackner 7d0dccd234 combase: Implement WindowsSubstringWithSpecifiedLength.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:33 +09:00
Sebastian Lackner 8a870d4965 combase: Simplify NULL pointer check in WindowsCreateString[Reference].
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:33 +09:00
Sebastian Lackner 1173967ea9 combase: Add TRACEs to string functions.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:32 +09:00
Thomas Pointhuber 3ba2d995c8 combase: Implement WindowsSubstring.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 13:20:50 +09:00
Marcus Meissner a20e75432e combase: Reorder checks (Coverity). 2015-01-13 20:39:32 +01:00
Francois Gouget 25faba157e combase: Remove an unused default debug channel. 2015-01-05 20:17:14 +01:00
Martin Storsjo 0d490f3a49 combase: Implement functions for HSTRING_BUFFER. 2014-12-15 16:49:00 +01:00
Martin Storsjo 998006e41d combase: Implement functions for accessing HSTRING objects. 2014-12-15 16:47:38 +01:00
Martin Storsjo e79460cd5c combase: Implement creation and deletion of HSTRING objects. 2014-12-15 16:45:31 +01:00