Commit Graph

238 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes 4a6f002d9a oleaut32: Add missing return value checks (Coverity).
CID 1442938:  Error handling issues  (CHECKED_RETURN)

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 22:02:05 +01:00
Alistair Leslie-Hughes 0c738d900a oleaut32: Support VT_DECIMAL in VarRound.
Based on a patch by Carlos Chiriboga Calderon.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=26653
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 22:04:50 +01:00
Alex Henrie 1e8c62b020 oleaut32: Add DECLSPEC_HOTPATCH to functions patched by MS Word 2010.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45199
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 20:59:38 +02:00
Michael Stefaniuc a1e0a029b0 oleaut32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:39 +02:00
Alexandre Julliard 756f781786 oleaut32: Fix check for DECIMAL variant in VarNumFromParseNum.
Reported by Gerald Pfeifer.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 16:45:56 +01:00
Piotr Caban 409bafcc73 oleaut32: Ignore underflows in VarR8FromStr.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:45 +01:00
Jacek Caban 840ab7cd1c oleaut32: Simplify VarCat implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 21:54:39 +02:00
Alistair Leslie-Hughes 538e46adea oleaut32: Improve support for IDispatch in VarCat.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-14 21:22:50 +02:00
Alistair Leslie-Hughes 1762f89ff2 oleaut32: Use VariantChangeTypeEx to convert to VT_BOOL.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 13:45:11 +02:00
Alistair Leslie-Hughes c260de0faa oleaut32: Remove dead code.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-18 16:17:28 +02:00
Nikolay Sivov 806ea12766 oleaut32: Fix return value when converting from NULL interface pointers.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-02 09:13:56 -05:00
Sebastian Lackner f2e48c2536 oleaut32: Set DebugInfo for static CRITICAL_SECTION structure.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:01 +09:00
Michael Stefaniuc 45839dccee oleaut32: Remove an always true if-subcondition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:08 +09:00
Nikolay Sivov 7bb743cca6 oleaut32: Remove dead switch case VT_I1 entry for VarSub (Coverity). 2015-06-08 15:31:02 +09:00
Michael Stefaniuc 512a814efc oleaut32: Just stop instead of erroring out on 8 or 9 in octal numbers. 2015-01-20 11:11:13 +01:00
André Hentschel 099514e753 oleaut32: Remove unused code (Clang). 2014-12-02 10:31:33 +01:00
Piotr Caban fc6ec997e2 oleaut32: Add support for VAR_TIMEVALUEONLY and VAR_DATEVALUEONLY flags in VarDateFromUdateEx. 2014-08-19 14:49:44 +02:00
Nikolay Sivov 6d3ca3dde4 oleaut32: Remove duplicated expression (PVS-Studio). 2014-08-18 12:45:57 +02:00
Jacek Caban d2886a05f9 wine/debug.h: Added debugstr_variant and debugstr_vt aliases and removed all duplicated implementations. 2014-07-24 17:05:55 +02:00
Jacek Caban e18ef3cf4c wine/debug.h: Added wine_dbgstr_variant and wine_dbgstr_vt implementations. 2014-07-24 17:05:51 +02:00
Marcus Meissner d3d54dfd3c oleaut32: Avoid buffer overread (Coverity). 2014-06-17 09:06:19 +02:00
Jacek Caban 18a42e0211 oleaut32: Use debugstr_variant for dump_Variant implementation. 2014-05-24 11:02:30 +09:00
Jacek Caban 5614770c24 oleaut32: Rewrite debugstr_vt. 2014-05-24 11:02:20 +09:00
Jacek Caban 9677454f7d oleaut32: Use debugstr_variant in variant.c where appropriate. 2014-05-15 19:04:54 +02:00
Jacek Caban ed41fc1d9b oleaut32: Added debugstr_variant helper for better debug traces. 2014-05-14 17:35:24 +02:00
Piotr Caban d1469144e9 oleaut32: Handle VariantCopy errors in VariantChangeTypeEx. 2014-05-01 16:32:14 +02:00
Jacek Caban b6db22da3b oleaut32: Fixed vartest.c tests on Windows 8.1. 2014-03-20 17:40:39 +01:00
Nikolay Sivov e610713012 oleaut32: Fix VariantCopy() for VT_RECORD variants. 2014-02-22 08:42:16 -06:00
Daniel Lehman 8306518424 oleaut32: Return FALSE from SystemTimeToVariantTime if day > 31 or year is negative. 2013-11-15 11:58:55 +01:00
Andrew Talbot b2b4bb9a12 oleaut32: Indentation fix. 2012-12-21 11:37:01 +01:00
Michael Stefaniuc 333c71730d oleaut32: Remove a superfluous TRUE:FALSE conditional expression. 2012-11-14 16:31:50 +01:00
Roman Dadkov 79ba36aef8 oleaut32: Fix VectorFromBstr call in VARIANT_CoerceArray. 2012-08-24 11:14:13 +02:00
Huw Davies dc1d7868d3 oleaut32: Add support for boolean strings in VarNot. 2012-06-26 17:30:42 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Daniel Lehman cc37abb658 oleaut32: Treat years 0 to 29 as 2000 to 2029 in VARIANT_RollUdate. 2012-04-19 13:44:52 +02:00
Jacek Caban 6ee95c7738 oleaut32: Correctly test VARIANT_BOOL value in VarCat. 2011-08-23 18:17:03 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Alistair Leslie-Hughes d457956c58 oleaut32: Dont filter out VT_RECORD|VT_REF type in VariantCopyInd. 2011-07-20 19:23:04 +02:00
David Hedberg fd543f5aa3 oleaut32: Don't crash in wrapper if variant resides in read-only memory. 2011-05-31 19:43:48 +02:00
Nikolay Sivov 1dcf3f7aef oleaut32/tests: Fix a safearray leak (Valgrind). 2011-02-01 18:14:07 +01:00
Alexandre Julliard 4e94fd5567 oleaut32: Fix the overflow check in VarNumFromParseNum.
Spotted by Adam Martinson.
2010-11-17 14:01:16 +01:00
Jeremy Drake c8a4983ed9 oleaut32: Fix handling of negative fractional variant dates.
The integer part is the number of days to be added to the epoch
(1899-12-30), and the fractional part (disregarding sign) represents
the fraction of that day that has elapsed.
2010-10-07 12:00:28 +02:00
Gerald Pfeifer 5b8eccd3c6 oleaut32: Remove variable rOk which is not really used from VarMod. 2010-05-17 12:42:31 +02:00
André Hentschel 1dc896eb52 oleaut32: Fix formula. 2010-02-08 17:14:43 +01:00
André Hentschel 23ff47610e oleaut32: Fix year 0. 2010-02-04 13:39:27 +01:00
André Hentschel ac1ca87b21 oleaut32: Fix day rolling. 2010-02-04 13:39:27 +01:00
André Hentschel 1b51c21fb3 oleaut32: Rewrite RollUdate to be easier to change and to support more conversions. 2010-02-02 11:59:28 +01:00
Huw Davies d83cf1af0f oleaut32: Fix a memory leak.
Found by Valgrind.
2009-12-16 12:42:40 +01:00
Piotr Caban 1f7a07ebe3 oleaut32: Ignore milliseconds in VarDateFromUdate implementation. 2009-11-19 11:35:40 +01:00
Rob Shearman 99d9983b61 oleaut32: Fix memory leaks in ITypeInfo_fnInvoke. 2009-11-18 11:15:39 +01:00