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
Alexandre Julliard
8fce9369b8
oleaut32: Replace long and unsigned long by more appropriate types.
2009-07-03 13:48:54 +02:00
Michael Stefaniuc
eddc78e480
oleaut32: Fix a small error in a comment.
2009-07-02 11:30:32 +02:00
Francois Gouget
97dea95e41
oleaut32: Tweak a comment to make it more explicit.
2009-05-26 14:09:58 +02:00
Detlef Riekenberg
6643049116
oleaut32: VarCat must use localized names for VT_BOOL.
2009-04-14 15:11:58 -05:00
Michael Stefaniuc
0c07d3ba37
oleaut32: Use FAILED instead of !SUCCEEDED.
2008-10-08 13:43:22 +02:00
Aric Stewart
3b3ed7a020
oleaut32: In variants check bOverflow to make sure not to accidently overun static buffers in an overflow case (Coverity 313).
2008-10-07 15:22:30 +02:00
Michael Stefaniuc
f830a12ddb
oleaut32: Remove redundant NULL check before SysFreeString (Smatch).
2008-09-25 11:18:59 +02:00
Rob Shearman
e57697a04b
oleaut32: Fix testing of HRESULT types with not operator instead of comparing against S_OK.
...
This makes it more obvious what the code is doing.
2008-08-18 17:34:12 +02:00
Michael Karcher
abaac300d1
oleaut32: Cache localised number chars.
2008-05-19 20:19:52 +02:00
Austin English
aab8fae59a
Spelling fixes.
2008-04-21 14:25:05 +02:00
Austin English
e8dbd66c23
oleaut32: Spelling fixes.
2008-04-14 21:28:38 +02:00
Andrew Talbot
9d16a42210
oleaut32: Assign to structs instead of using memcpy.
2008-03-12 11:59:27 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Alexandre Julliard
a7f4e8bf74
oleaut32: Properly initialize the result variant in VarImp.
2007-10-29 13:53:40 +01:00
Alex Villacís Lasso
38079e0744
oleaut32: Support for VT_DISPATCH in VarRound.
2007-06-05 12:20:46 +02:00
Alex Villacís Lasso
7f84b91bff
oleaut32: Support for VT_DISPATCH in VarNeg.
2007-06-05 12:20:37 +02:00
Alex Villacís Lasso
f1b44b36e4
oleaut32: Support for VT_DISPATCH in VarInt.
2007-06-05 12:20:28 +02:00
Alex Villacís Lasso
bd7de42787
oleaut32: Support for VT_DISPATCH in VarFix.
2007-06-05 12:20:18 +02:00
Alex Villacís Lasso
2ebe12397f
oleaut32: Support for VT_DISPATCH in VarNot.
2007-06-05 12:20:08 +02:00
Alex Villacís Lasso
932fcac150
oleaut32: Support for VT_DISPATCH in VarAbs.
2007-06-05 12:19:31 +02:00
Francois Gouget
fa48cb042c
Assorted spelling fixes.
2007-05-29 13:47:18 +02:00
Jason Edmeades
94b9b6146d
oleaut32: Convert to VT_DECIMAL fails with overflow (with test).
2007-04-03 11:32:57 +02:00
Andrew Talbot
d6fc116475
oleaut32: Declare some items static.
2007-01-22 12:08:55 +01:00
Alex Villacís Lasso
1c85155eaa
oleaut32: Support for VT_DISPATCH in VarImp.
2007-01-03 11:49:16 +01:00
Alex Villacís Lasso
e02b224d57
oleaut32: Support for VT_DISPATCH in VarPow.
2007-01-03 11:48:47 +01:00
Alex Villacís Lasso
90844e2067
oleaut32: Support for VT_DISPATCH in VarMod.
2007-01-03 11:48:13 +01:00
Alex Villacís Lasso
cdceb02319
oleaut32: Support for VT_DISPATCH in VarIdiv.
2007-01-03 11:44:42 +01:00
Alex Villacís Lasso
5aacee9550
oleaut32: Support for VT_DISPATCH in VarXor.
2007-01-03 11:44:03 +01:00
Alex Villacís Lasso
e98a49dee4
oleaut32: Support for VT_DISPATCH in VarOr.
2007-01-03 11:43:29 +01:00
Alex Villacís Lasso
a5e3a999ea
oleaut32: Support for VT_DISPATCH in VarSub.
2007-01-03 11:42:33 +01:00
Alex Villacís Lasso
67c9b7cbb8
oleaut32: Support for VT_DISPATCH in VarDiv.
2007-01-03 11:41:46 +01:00
Alex Villacís Lasso
01395dec51
oleaut32: Support for VT_DISPATCH in VarMul.
2007-01-03 11:40:11 +01:00
Alex Villacís Lasso
308a0b2e18
oleaut32: Support for VT_DISPATCH in VarAdd.
2007-01-03 11:39:11 +01:00
Alex Villacís Lasso
97d13c552c
oleaut32: Support for VT_DISPATCH in VarAnd.
2007-01-03 11:37:31 +01:00
Alex Villacís Lasso
4245cbb31c
oleaut32: Add wrapper for dereferencing a VARIANT of type VT_DISPATCH and returning the VARIANT value.
2007-01-03 11:35:37 +01:00
Alex Villacís Lasso
c290f623e0
oleaut32: Fix VarMod(VT_DECIMAL) test by properly initializing the DECIMAL to use.
...
Fix Wine handling of VT_DECIMAL in VarMod.
2006-12-26 13:25:03 +01:00
Dmitry Timoshkov
601bf6ea12
oleaut32: Make some data const and static.
2006-11-28 12:36:20 +01:00
Alex Villacís Lasso
3f593aa622
oleaut32: variant - allow conversion of VT_DISPATCH into VT_BSTR in VarCat.
2006-11-08 15:50:55 +01:00
Francois Gouget
ef998ea6cb
Assorted spelling fixes.
2006-10-16 11:33:38 +02:00
Hans Leidekker
ce66f5d684
oleaut32: Win64 printf format warning fixes.
2006-10-13 12:08:47 +02:00
Francois Gouget
dd28d5be08
Tweak TRACE()s to simplify '\n' checks.
2006-10-06 17:29:27 +02:00
Benjamin Arai
4cb6c9184b
oleaut32: Implementation for function variant:VarImp.
2006-09-21 11:25:41 +02:00
Benjamin Arai
ed64999180
oleaut32: Fixes for function variant:VarIdiv.
2006-09-12 10:53:49 +02:00
Benjamin Arai
aaca30cf03
oleaut32: Fixes for function variant:VarDiv.
2006-09-12 10:53:08 +02:00
Benjamin Arai
fbf9cba683
oleaut32: Fixes for function variant:VarPow.
2006-09-08 12:54:59 +02:00
Benjamin Arai
3abb454c70
oleaut32: Fixes for function variant:VarAnd.
2006-09-08 12:52:14 +02:00
Francois Gouget
3eda8da2bd
oleaut32: Fix spelling of VARIANT_NUMBER_CHARS's separator fields.
2006-09-08 11:03:00 +02:00
Stefan Leichter
220547708a
oleaut32: Print 64bit integers with wine_dbgstr_longlong.
2006-08-22 11:59:38 +02:00
Benjamin Arai
9634ffa7dc
oleaut32: VarSub: Fixes several data types and corrects error codes.
2006-07-28 12:56:45 +02:00
Benjamin Arai
4026a4c0a8
oleaut32: Fix temp variant initialization issues in VarCat.
2006-07-21 13:40:32 +02:00
Benjamin Arai
911af4dce9
oleaut32: Update error codes for VarMod.
2006-07-19 09:38:50 +02:00
Benjamin Arai
d42002b72c
oleaut32: VarCmp - Corrected function description.
2006-07-18 11:10:15 +02:00
Benjamin Arai
700adac9ac
oleaut32: Conformance test and patch for VarCat.
2006-07-11 17:14:58 +02:00
qingdoa daoo
5e09c29867
oleaut32: Copying a NULL BSTR should result in an empty BSTR in VariantCopy.
2006-07-10 11:52:45 +02:00
Robert Shearman
123592f0c3
oleaut32: Fix parsing of hex numbers with 'e' in the string by moving
...
the exponent parsing to after the hex digit parsing.
2006-07-03 11:33:23 +02:00
Robert Shearman
b5bff92a0c
oleaut32: Uncomment a line to implement conversion from VT_DISPATCH to VT_BSTR.
2006-06-08 11:11:01 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Huw Davies
2898b5d9ad
oleaut32: Remove weird attempt to clear VT_VARIANT.
...
Add some tests.
2006-05-07 10:10:56 +02:00
Ulrich Czekalla
37f1d4cb54
oleaut32: Prevent freeing of random memory.
...
Don't assign type to variant until we're sure we are assigning a
value.
2006-02-02 13:18:43 +01:00
Michael Stefaniuc
f73b68b016
oleaut32: Reimplement VarCmp().
...
- Supports now all WinXP allowed combinations of input variants.
- VT_RESERVED on input variants is handled now.
- Removed complicated VT_DATE comparision; that's not how Windows does it.
- Improved documentation.
2006-01-16 21:34:50 +01:00
Michael Stefaniuc
e47b813fc6
oleaut32: Define missing but useful VTBIT_* macros.
2006-01-16 21:32:24 +01:00
Uwe Bonnes
87df07452a
Extend VarCmp() and add test cases.
2005-11-03 13:21:11 +00:00
Robert Shearman
4381c62560
Fix a crash during +variant logging caused by a typo causing an array
...
to be one element less than expected.
2005-11-02 20:03:01 +00:00
Michael Stefaniuc
8ecefe9e93
Handle VT_DECIMAL in VarCmp().
2005-10-28 10:08:31 +00:00
Michael Stefaniuc
c64abfa374
Handle VT_CY in VarDiv().
2005-10-26 12:05:39 +00:00
Alex Villacís Lasso
253f3bf5be
Modify VarDiv() and VarSub() to use the existing VarDecSub() and
...
VarDecDiv() for DECIMAL.
2005-09-22 10:35:16 +00:00
Michael Stefaniuc
4d36546c07
- VarAdd, VarMul: I4 overflows to R8 and not I8 even if the result
...
would fit in I8. Fix tests.
- Document a brokeness in the handling of I8 numbers in
VarNumFromParseNum. Fix tests.
2005-08-23 09:33:37 +00:00
Robert Shearman
27407fad35
Document active object and variant functions.
2005-07-05 11:02:19 +00:00
Robert Shearman
cbc3af8ca5
- Conversions between variants types of the same size should ignore
...
overflows.
- Tests for this behaviour.
2005-06-29 20:15:32 +00:00
Michael Stefaniuc
8e81d45732
- VarCmp: handle comparision of VT_EMPTY with an integer
...
- small comment fix
2005-06-28 10:54:07 +00:00
Francois Gouget
6394a15314
Assorted spelling fixes.
2005-06-17 20:59:49 +00:00
Michael Stefaniuc
948dd66603
- Reimplement VarAdd, had missing functionality and wrong behaviour.
...
- Fix a typo in VarMul.
2005-05-29 20:00:31 +00:00
Michael Stefaniuc
0f64aaa807
Reimplement VarMul(). It can multiply now all variants that the native
...
(WinXP) function supports too.
2005-05-23 11:46:17 +00:00
Richard Cohen
97bc8f6dc7
- Remove unused macro.
...
- Check for VT_I8 before testing it.
- VarMod returns DISP_E_OVERFLOW not E_INVALIDARG.
2005-05-23 10:26:32 +00:00
Michael Stefaniuc
28faa92c7f
Fix VariantChangeType: calls to VarDecFromCy and VarDecFromDisp had
...
source and destination swapped.
2005-05-23 09:50:50 +00:00
Daniel Remenak
4d7e99df93
Implemented VarIdiv.
2005-04-13 10:59:25 +00:00