Commit Graph

161 Commits

Author SHA1 Message Date
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 b378baedaa oleaut32/tests: Remove duplicate code blocks (PVS-Studio). 2014-08-18 12:46:12 +02:00
Nikolay Sivov baa8363f90 oleaut32/tests: Remove redundant assignment (PVS-Studio). 2014-08-18 12:46:08 +02:00
Nikolay Sivov 6e9693edd9 oleaut32/tests: Remove redundant assignment (PVS-Studio). 2014-08-18 12:46:05 +02:00
Nikolay Sivov 29eace89e9 oleaut32/tests: Fixed a couple of string leaks (Valgrind). 2014-05-06 13:46:59 +02:00
Nikolay Sivov e5e8677666 oleaut32/tests: Move string allocation after function pointer check (Coverity). 2014-03-24 20:20:09 +01: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
Nikolay Sivov 52a70451c4 oleaut32/tests: Test for VariantClear() on VT_RECORD variant. 2014-02-22 08:42:12 -06:00
André Hentschel 16111fa63c oleaut32/tests: Use boolean return values in boolean functions. 2014-01-30 14:51:39 +01:00
Daniel Lehman 8306518424 oleaut32: Return FALSE from SystemTimeToVariantTime if day > 31 or year is negative. 2013-11-15 11:58:55 +01:00
André Hentschel ca469de656 oleaut32/tests: Fix vartest tests compilation with __WINESRC__ defined. 2013-10-28 10:38:15 +01:00
Frédéric Delanoy 3f91834ffb oleaut32/tests: Use BOOL type where appropriate. 2013-10-18 12:34:39 +02:00
André Hentschel dc0cf8319c oleaut32/tests: Use BOOL instead of int when appropriate. 2013-06-28 11:39:42 +02:00
André Hentschel a58e9f0312 oleaut32/tests: Don't use autoheader styled define in vartest. 2013-06-25 12:33:46 +02:00
André Hentschel 18690c833a oleaut32/tests: Get rid of HAVE_OLEAUT32_RECORD in vartest. 2013-06-25 12:33:45 +02:00
André Hentschel ca77d6c1da oleaut32/tests: Get rid of IS_ANCIENT in vartest. 2013-06-25 12:33:43 +02:00
Alistair Leslie-Hughes 6d1db050d2 oleaut32/tests: Correct output arguments. 2013-06-04 10:14:58 +02:00
Francois Gouget 085b1ba3f5 oleaut32/tests: Fix compilation on systems that don't support nameless structs or unions. 2012-09-24 10:51:47 +02:00
Nikolay Sivov 2bb07936ef oleaut32: Added some VT_DECIMAL rounding tests. 2012-09-04 16:15:51 +02:00
Huw Davies dc1d7868d3 oleaut32: Add support for boolean strings in VarNot. 2012-06-26 17:30:42 +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
Francois Gouget 8375c8e003 oleaut32/tests: Dynamically load some functions that are missing on early NT4 releases. 2012-01-09 12:52:13 +01:00
Francois Gouget 4f0104f887 oleaut32/tests: Once we have a function pointer, use it consistently. 2012-01-09 12:52:12 +01:00
Francois Gouget 559cdbfc7c oleaut32/tests: Use win_skip() when detecting an API is missing. 2012-01-09 12:52:11 +01:00
Marcus Meissner 9d7219dfb9 oleaut32: Fixed buffer size to MBtoWC. 2011-08-25 11:31:54 +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 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Austin English fdf24a9406 oleaut32/tests: Remove dead assignments (LLVM/Clang). 2011-02-15 17:09:18 +01:00
Austin English 35c2ebd673 oleaut32/tests: Make sure return values are used (LLVM/Clang). 2011-02-15 17:09:09 +01:00
Nikolay Sivov d47e638ba3 oleaut32/tests: Test for return value directly. 2011-01-11 16:05:46 +01:00
Michael Stefaniuc 65941a66c3 oleaut32/tests: COM cleanup for vartest.c. 2011-01-07 10:22:32 +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
Jeremy Drake 25118e5383 oleaut32/tests: Test conversion of ambiguous DATE values.
For 0.0 < x < 1.0, DATE values x and -x represent the same date/time:
30-Dec-1899 at some time determined by x.  When converting from DATE,
either value is accepted.  When converting to DATE, the positive value
is produced.
2010-10-07 12:00:28 +02:00
Jeremy Drake 293b8be4e1 oleaut32/tests: Added tests for negative fractional variant dates. 2010-10-04 15:00:07 +02:00
Gerald Pfeifer dbd2e8cb34 oleaut32/tests: Remove variable rValid which is not really used from test_VarMod. 2010-05-25 12:03:12 +02:00
Gerald Pfeifer 9c3729795f oleaut32/tests: Remove variable expectedhres which is not really used from test_VarDiv. 2010-05-03 15:41:59 +02:00
André Hentschel 691e15b427 oleaut32/tests: Use testvalues from VarDateFromUdate also for regression testing of DosDateTimeToVariantTime. 2010-02-05 10:07:27 +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
André Hentschel 0e1bc3ef2b oleaut32/tests: Add tests for backrolled time. 2010-01-28 11:07:42 +01:00
André Hentschel 2e48ecd924 oleaut32/tests: Add a test for DosTime. 2010-01-28 11:07:37 +01:00
Piotr Caban 1f7a07ebe3 oleaut32: Ignore milliseconds in VarDateFromUdate implementation. 2009-11-19 11:35:40 +01:00
André Hentschel 932976dcf5 oleaut32: Test for rolled hours and seconds. 2009-09-15 14:31:29 -05:00
André Hentschel a83f94afa2 oleaut32: Test for rolled minutes. 2009-09-10 10:49:27 +02:00
Paul Vriens 28d0487c24 oleaut32/tests: Fix some intermittent test failures on W98 and NT4. 2009-06-02 11:57:21 +02:00
Paul Vriens 31bb9219d6 oleaut32/tests: Spelling fixes. 2009-05-29 11:26:08 +02:00
Detlef Riekenberg 00703d0c2f oleaut32/tests: Replace lstrcpyW and lstrcatW with memcpy to fix failures on win95. 2009-04-20 17:19:58 +02:00
Detlef Riekenberg 6643049116 oleaut32: VarCat must use localized names for VT_BOOL. 2009-04-14 15:11:58 -05:00