Commit Graph

81 Commits

Author SHA1 Message Date
Michael Stefaniuc
d0dbae3b18 Tests for VarMul(). 2005-05-23 11:46:36 +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
Richard Cohen
25ab9f2c0f Check if VT_R8 and VT_INT_PTR are supported before testing them. 2005-05-20 19:00:02 +00:00
Pierre d'Herbemont
342da59b0c Remove stdlib.h inclusion if winsock.h is included. 2005-05-18 15:33:20 +00:00
Jacek Caban
7ff344e20f Fixed vartype test. 2005-03-18 14:02:12 +00:00
Jon Griffiths
eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Rein Klazes
26771be4da SafeArrayDestroy() returns success when called with a NULL
pointer. Added to the test cases.
2005-01-31 11:31:50 +00:00
Rémi Assailly
6063b542aa char -> const char fixes. 2005-01-24 11:29:44 +00:00
Alex Villacís Lasso
ed9a359402 When parsing an hex/oct integer value, copy value verbatim in VARIANT,
rather than a negated value. Add test case for this behavior.
2005-01-17 19:34:58 +00:00
Paul Vriens
202b340a51 - use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
2005-01-09 17:29:21 +00:00
Alexandre Julliard
ddd2486e98 Expand the COPYTEST macro to avoid trouble with 64-bit types. 2004-12-17 19:13:24 +00:00
Walt Ogburn
f61786d444 VarParseNumFromStr: Keep zeros after decimal point, correctly keep
track of trailing zeros in a decimal number.
VarNumFromParseNum: Don't error on decimal expressions for zero.
2004-10-21 19:55:37 +00:00
Walt Ogburn
84c1f667ae Keep "trailing" zeros on whole number part of a decimal.
Add an example of this to tests.
2004-10-19 21:08:40 +00:00
Walt Ogburn
f5c25e8067 Test that SafeArrayDestroyData keeps the pointer if FADF_STATIC is
set, nulls it otherwise.
2004-10-19 21:08:18 +00:00
Walt Ogburn
ea1b58b560 Test zero exponents with and without signs. 2004-10-18 22:35:18 +00:00
Huw Davies
76c5590bfb Don't trash the dst variant if we can't do the type conversion.
Add a test for this.
2004-09-22 19:12:18 +00:00
Marcus Meissner
a6584f5eed SafeArrayGetElement on a VARIANT array does not free the previous
VARIANT in the passed pointer. Added testcase.
2004-09-20 19:11:48 +00:00
James Hawkins
2d044dd64b Use InterlockedDecrement and InterlockedIncrement instead of ++/--. 2004-09-16 19:08:23 +00:00
Francois Gouget
27ca26bcb1 Detect whether Visual Studio can cast __uint64's to floats and disable
the relevant tests if it cannot.
Fix a double to float literal conversion warning.
2004-09-02 20:05:55 +00:00
Francois Gouget
d0f10ac268 Remove references to ICOM_THIS and WINE_UNUSED as they don't exist on
Windows.
Define COBJMACROS so we get the IRecordInfo_* macros.
2004-09-01 04:53:52 +00:00
Jacek Caban
3a2574e3cc Fix handling of VARIANT with VT_BYREF and null pointer in
VariantChangeTypeEx.
2004-08-25 00:38:59 +00:00
Robert Shearman
25b74d2cfe More safe array tests. 2004-08-24 18:42:53 +00:00
Alexandre Julliard
f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Jacek Caban
bf9f8da333 Ref counting fixes. 2004-08-19 20:29:16 +00:00
Francois Gouget
08177d6d7b The Windows headers support for NONAMELESSUNION and NONAMELESSSTRUCT
is unusable. So don't force this mode. Instead check whether
NONAMELESSUNION and/or NONAMELESSSTRUCT are set (by the Wine headers)
and define custom access macros accordingly.
2004-08-13 19:49:53 +00:00
Alexandre Julliard
48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Alexandre Julliard
0467ce9fd7 Get rid of the non-standard ICOM_VFIELD macro. 2004-08-12 19:52:49 +00:00
Francois Gouget
bf72af30d0 Modify widl to put the C COM macros inside an #ifdef COBJMACROS block
as is done in the Windows headers.
Add #define COBJMACROS where needed in Wine.
Fixes the compilation of the oleaut32/tests/olefont.c and
urlmon/tests/url.c conformance tests with the Windows headers.
2004-08-11 19:43:45 +00:00
Jon Griffiths
0d1b4239fd Trace the system and user locales upon startup.
Print the returned string if VarDateChangeTypeEx fails.
2004-05-05 19:00:21 +00:00
Jon Griffiths
d275676215 Fix failures under win2k. 2004-04-27 23:30:10 +00:00
Jon Griffiths
309ed0641e Update VarXor,VarAbs,VarNot for all input types.
Test VarOr; fix a failure with later oleaut32 versions.
Speed up compilation by sharing failure strings.
2004-04-27 23:29:58 +00:00
Jon Griffiths
30febfc87c Test ClearCustData() and UINT->I4 conversion. 2004-04-23 21:31:37 +00:00
Chris Morgan
58dcfb6205 Skip over most of the unused variant types to speed up the variant
tests.
2004-04-23 02:40:30 +00:00
Francois Gouget
ebf0eb3138 Make static Unicode strings const. 2004-04-20 00:34:52 +00:00
Francois Gouget
b948778660 Assorted spelling fixes. 2004-03-23 23:20:16 +00:00
Jon Griffiths
ad1190e4ab Tests for VarXor/VarEqv. 2004-03-22 20:39:50 +00:00
Jon Griffiths
19271d7ae9 Use function ptrs for call only present in later versions.
Fix tests that fail with old versions.
2004-03-17 20:47:42 +00:00
Fabian Cenedese
5feedfdc73 Let VarParseNumFromStr and VarNumFromParseNum cope with hex and oct
strings. Needed from VB conversions such as CLng, CInt, CByte...
2004-03-16 19:15:04 +00:00
Alexandre Julliard
589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Fabian Cenedese
3d7034e79e VarRound implementation (without type DECIMAL yet) with test function. 2004-02-26 05:27:11 +00:00
Chris Morgan
21d591ec4f Implement tests for VarMod().
Added char *vtstr() to enhance test debugging by returning a text
string that corresponds to the input type.
2004-02-06 05:23:48 +00:00
Francois Gouget
231fbff8d0 Add trailing '\n's to ok() calls. 2004-01-27 04:01:10 +00:00
Alexandre Julliard
20b4585e3c Only link against libdxguid where necessary. 2004-01-27 00:11:16 +00:00
Jon Griffiths
d83ed49148 Remove tests that are covered by vartype.c.
Call by pointer for more functions not available in early versions.
Add tests for VarFix/VarInt/VarNeg, VarFormat "on/off/yes/no".
Fix tests that assumed relative dates.
Make BSTR copy test separate.
2004-01-20 23:38:38 +00:00
Hans Leidekker
301bbc4984 Add missing comma. 2004-01-19 21:48:21 +00:00
Marcus Meissner
2ac287e875 Copy BSTRs byte wise.
Added a testcase for byte wise copy of VT_BSTR variant with
VariantCopy().
2004-01-09 00:58:01 +00:00
Francois Gouget
640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Alexandre Julliard
bb0d6b7202 Commented out tests that assume that the current year is 2003. 2004-01-02 01:51:38 +00:00
Marcus Meissner
e12ef562a8 Dimensions with cElements=0 are valid and needed by InstallShield.
SafeArrayGetElement: fixed BSTR and LPUNKNOWN handling.
Added testcases for above cases.
2003-12-30 19:06:41 +00:00
Jon Griffiths
b3401e66a3 I8/UI8 are accepted in arrays in recent native dlls.
Test UDTs, array coercion and new functions.
2003-12-15 21:11:25 +00:00