Robert Wilhelm
b440573d2a
oleaut32: Rescale result after overflow in VarDecAdd.
...
Signed-off-by: Robert Wilhelm <robert.wilhelm@gmx.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-18 17:06:45 +02:00
Francois Gouget
c83b7a0f39
oleaut32: Update the VarDateFromStr() Y2K cutoff.
...
Old Windows versions used 29 as the Y2K cutoff, that is they mapped
two digit years 00-29 to 2000-2029 and years 30-99 to 1930-1999.
But starting with Windows 10 1903 the cutoff is now 49 by default.
So update Wine to match the current Windows versions and adjust the
tests to work for both.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51453
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 13:19:47 +02:00
Francois Gouget
1e627d1187
oleaut32: Fix the Var*FromStr() prototypes.
...
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 12:27:56 +02:00
Nikolay Sivov
02d29c6a9d
oleaut32: Fix Var*FromDec() prototypes.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-02 17:55:34 +01:00
Jacek Caban
22a1485c08
oleaut32: Use C locale in VARIANT_BstrFromReal.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50672
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 23:01:38 +01:00
Michael Stefaniuc
b32eb7b191
oleaut32: Use a string literal for an empty string.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 10:25:23 +01:00
Nikolay Sivov
c4a9a296ba
oleaut32: Use wide-char string literals.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Michael Stefaniuc
2ee75bf9ad
oleaut32: Remove superfluous casts.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-28 21:36:30 +02:00
Jacek Caban
db77f53507
oleaut32: Fix checks for digit characters.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 23:04:35 +01:00
Alexandre Julliard
aa4ac3ad6c
oleaut32: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 09:41:13 +02:00
Alex Henrie
77a8872fc9
oleaut32: Make constant 'szAccept' static.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-30 19:36:51 +01: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
Daniel Lehman
1d2ac5d8b6
oleaut32: Extend value range before getting absolute value in VarBstrFromI4.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:06 +02:00
Alexandre Julliard
18f7ec3670
oleaut32: Remove unnecessary consts.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-16 10:14:52 +02:00
Andrey Gusev
307b3c8ed5
oleaut32: Remove redundant comparison.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 18:19:10 +02:00
Francois Gouget
4be8d8392c
oleaut32: Make VARIANT_GetLocalisedText() static.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 13:11:44 +02:00
Akihiro Sagawa
efc86ec175
oleaut32: Fix parse error when converting non-ascii string to VT_DATE.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 18:58:57 +02:00
Huw Davies
f506ffc6d6
oleaut32: Use VariantInit() rather than open coding it.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:15:24 +02:00
Alistair Leslie-Hughes
c082edb4bd
oleaut32: Remove redundant call to VariantClear().
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:15:22 +02:00
Huw Davies
b4a73f74af
oleaut32: Fix VarDateFromStr for the case of a trailing meridiem indicator.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-06 20:07:37 +09:00
Sebastian Lackner
7280762238
oleaut32: Fix possible integer overflow in VarR4FromDec.
2015-08-19 20:19:57 +09:00
André Hentschel
bedd444a36
oleaut32: Remove unused macros.
2015-02-23 15:25:57 +09:00
Sebastian Lackner
ec218b4218
oleaut32: Decrease accuracy if scaling is not possible in VarDecAdd.
2014-07-09 09:28:11 +02:00
Shuai Meng
1809f7c782
oleaut32: Fixed bounds of VarIntFromFloat.
2014-03-25 19:01:32 +01:00
Nikolay Sivov
8c2b4bfe48
oleaut32: Initialize result VARIANT in *FromDisp().
2014-02-10 10:41:41 +01:00
Frédéric Delanoy
ca1a1d54c0
oleaut32: Use BOOL type where appropriate.
2014-02-07 13:11:57 +01:00
Frédéric Delanoy
f4dc64918e
oleaut32: Use BOOL type where appropriate.
2013-10-18 12:34:39 +02:00
Andrew Eikum
87c459ab23
oleaut32: Implement VarDecRound.
2013-09-18 13:13:30 +02:00
Piotr Caban
a2d74e5f0c
oleaut32: Fixed VARIANT_FormatDate behavior on dates before year 1600.
2013-02-25 13:03:03 +01:00
Piotr Caban
209b58c64e
oleaut32: Fixed VarBstrFromDate behavior on dates before year 1600.
2013-02-22 19:15:59 +01:00
Piotr Caban
8f7d1ed520
oleaut32: Fixed time outputing for dates before 1899 in VarBstrFromDate.
2013-02-22 19:15:28 +01:00
Francois Gouget
4d22dc440b
oleaut32: Use the CSTR_XXX macros instead of numeric literals.
2012-06-21 08:35:09 +02:00
Frédéric Delanoy
c55db752a2
oleaut32: Avoid hardcoding array lengths.
2011-11-23 09:11:29 +01:00
Michael Stefaniuc
38794b4ba0
oleaut32: Fix some VarCyFrom* tests.
...
Due to a broken EXPECTRES macro the EXPECT_OVERFLOW accepts S_OK return
values.
2011-10-08 17:36:47 +02:00
Marcus Meissner
5b80d1beea
oleaut32: Unshadow cmp to make code work (Coverity).
2011-06-27 13:26:32 -05:00
Francois Gouget
30664aa091
oleaut32: Fix a typo in a documentation comment.
2011-06-13 11:32:39 +02:00
John Fremlin
66c42df02e
oleau32: Stop incorrectly parsing dates in bogus YDM order in European locales.
2011-04-26 15:31:28 +02:00
Nikolay Sivov
9a5098bbb4
oleaut32: Copy bytes instead of WCHARs in VarBstrCat.
2010-06-01 11:04:11 +02:00
Michael Stefaniuc
0f82f68734
oleaut32: Avoid using long.
2010-05-10 13:46:08 +02:00
André Hentschel
7b66e1aeeb
oleaut32: Check if the delimiter is a date delimiter.
2010-05-08 13:12:33 +02:00
Alexandre Julliard
2e5d1f192f
oleaut32: Use the x87 assembly code for rounding on x86_64 too.
2010-04-09 11:14:47 +02:00
André Hentschel
a360c98187
oleaut32: Fix localized date and time parsing.
2010-03-04 12:28:33 +01:00
André Hentschel
71f24431b9
oleaut32: Fix localized date parsing.
2010-03-04 12:28:28 +01:00
Alexandre Julliard
2a1114f805
oleaut32: Avoid floating point for some VarCy conversions.
2009-10-09 11:39:17 +02:00
Hib Eris
3e5159e169
oleaut32: Prevent overflow in VarDecCmp.
2009-07-07 14:18:19 +02:00
Detlef Riekenberg
6643049116
oleaut32: VarCat must use localized names for VT_BOOL.
2009-04-14 15:11:58 -05:00
Lei Zhang
25c2e283d8
oleaut32: Fix some corner cases in VarBstrCmp.
2009-03-24 14:07:50 +01:00
Juan Lang
32bacc9c0b
oleaut32: Implement VarDecInt.
2009-02-19 12:51:36 +01:00
Juan Lang
48d1f9fba1
oleaut32: Implement VarDecFix.
2009-02-19 12:51:27 +01:00
Juan Lang
d693dfda8c
oleaut32: Constify input parameter to VarR8FromDec.
...
With thanks to Dmitry for spotting this.
2009-02-19 12:51:22 +01:00