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
Juan Lang
63303048c4
oleaut32: Remove an errant semicolon.
2009-02-18 12:17:25 +01:00
Francois Gouget
39382652a9
oleaut32: Remove unneeded casts of zero.
2008-12-08 12:05:47 +01:00
Alexandre Julliard
5a2c9de2e8
oleaut32: Register interfaces through dlldata.c as far as possible.
2008-12-02 21:20:32 +01:00
Rob Shearman
4200022ddb
oleaut32: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
2008-09-12 16:50:00 +02:00
Rob Shearman
b234173b1f
oleaut32: Fix buffer length passed to VARIANT_DI_tostringW in VarBstrFromCy.
...
It's the number of elements, not the number of bytes.
2008-08-18 17:34:12 +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
c5310eda8d
oleaut32: Currency to BSTR must use local decimal separator.
2008-05-27 12:05:48 +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
6eb90d87fb
oleaut32: Constify some variables.
2007-08-06 12:12:27 +02:00
Michael Stefaniuc
45d6d1c20b
oleaut32: Remove a return after return.
2007-07-20 11:45:58 +02:00
Marcus Meissner
46d94653f1
oleau32: Fix one entry overflow (Coverity).
2007-05-23 12:51:33 +02:00
Andrew Talbot
321c21c5c8
oleaut32: Remove superfluous semicolons.
2007-04-13 12:58:58 +02:00
Andrew Talbot
cae5c216a5
oleaut32: Replace inline static with static inline.
2007-03-23 12:29:49 +01:00
Andrew Talbot
26af24c905
oleaut32: Remove unused items.
2007-01-16 11:19:09 +01:00
Alex Villacís Lasso
4a4effe3f7
oleaut32: VarBstrFromCy - Remove use of sprintfW by converting a CY
...
into a DECIMAL instead of a double as an intermediate step.
2006-12-21 11:24:48 +01:00
Alex Villacís Lasso
f162ce45ad
oleaut32: Bypass conversion to string in R4/R8 -> DECIMAL conversion.
2006-12-19 14:09:44 +01:00
Alexandre Julliard
478ac3724d
oleaut32: Use LOCALE_NOUSEROVERRIDE where necessary in variant conversions.
2006-12-07 14:05:25 +01:00
Charles Blacklock
12e4aa2165
oleaut32: Cleanup of previous VarBstrCmp patch.
2006-12-04 12:38:51 +01:00
Charles Blacklock
2b2ee9c7d1
oleaut32: Add VarBstrCmp binary comparison for LCID==0.
2006-11-30 20:06:37 +01:00
Andrew Talbot
501e2dcc99
oleaut32: Cast-qual warnings fix.
2006-11-08 15:51:31 +01:00
Hans Leidekker
ce66f5d684
oleaut32: Win64 printf format warning fixes.
2006-10-13 12:08:47 +02:00
Juan Lang
2a0c37d8b9
oleaut32: Correctly handle NULLs embedded in BSTRs, with tests.
2006-06-22 12:29:03 +02:00
Alexandre Julliard
fb5366c6c3
oleaut32: Use unsigned int instead of size_t to avoid printf format warnings.
2006-06-13 14:14:13 +02:00
Robert Shearman
e452b7a0b4
oleaut32: Handle BSTRs in VARIANT_CopyData.
2006-06-08 11:10:58 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Robert Shearman
b3a8a3d559
oleaut: Implement VarBstrFromDisp.
2006-03-06 11:10:26 +01:00
Michael Stefaniuc
8ec3906768
Fix VarBstrCmp for NULL input BSTRs (MSDN is wrong).
2005-12-05 12:00:24 +01:00
Alex Villacís Lasso
69b5f808a7
Implement complete VarDecDiv() for any valid DECIMAL.
2005-10-26 13:53:21 +00:00
Alex Villacís Lasso
fa49ffcb61
Implement complete VarDecMul() for any valid DECIMAL.
2005-10-26 12:06:41 +00:00
Alex Villacís Lasso
00187fab29
Implement complete VarBstrFromDec() for any valid DECIMAL, with
...
internationalization support borrowed from VARIANT_BstrFromReal(). The
decimal fix for VARIANT_BstrFromReal was encapsulated in a separate
function and reused.
2005-10-26 10:12:20 +00:00
Alex Villacís Lasso
680bf12aec
Fix a scaling error in VarR4FromDec() and VarR8FromDec() that
...
incorrectly multiplies the high 32 bits of the DECIMAL by 1e64 instead
of the correct 2^64.
2005-09-22 10:49:01 +00:00
Alexandre Julliard
e1646dd215
Use MAKEINTRESOURCE instead of casts where appropriate.
2005-09-12 20:29:16 +00:00
Alex Villacís Lasso
10f0ace4a2
Make Single|Double->BSTR conversion use the specified locale for the
...
decimal point even without the LOCALE_USE_NLS flag. Test supplied.
2005-09-09 15:01:17 +00:00
Alexandre Julliard
095fb5b061
Moved a number of definitions that are not needed in other files into
...
vartype.c
2005-08-09 10:34:21 +00:00
Alexandre Julliard
66868e532b
Removed some unnecessary macros, and make some functions static.
2005-08-08 15:08:22 +00:00
Alex Villacís Lasso
3153aa9131
Ensure that underflowing negative float is represented as a positive
...
0, just as native oleaut32.
2005-07-19 11:38:12 +00:00
Alex Villacís Lasso
2dd3288c43
After Float->string conversion via sprintfW(), VarDecFromR[4|8] is
...
forced to use US locale for string->Decimal conversion, to agree with
sprintfW().
2005-03-24 19:03:14 +00:00
Francois Gouget
0f313d0d5d
Fix the VarI4FromI2 API documentation.
2004-10-07 02:59:45 +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
Mike Hearn
f349cbb72b
Move variant code to its own debug channel.
2004-07-04 00:09:11 +00:00
Jon Griffiths
17ac230bbf
Check the correct param for 2 DECIMAL operations.
2004-04-23 21:30:32 +00:00
Francois Gouget
b948778660
Assorted spelling fixes.
2004-03-23 23:20:16 +00:00
Fabian Cenedese
7dba7d3138
No sign extension for negative values.
2004-02-25 01:23:49 +00:00
Ge van Geldorp
399901e054
Rename LARGE_INTEGER and ULARGE_INTEGER members "s" to "u" to conform
...
with PSDK.
2004-01-23 01:51:33 +00:00
Jon Griffiths
757af5fc15
Use integer math in VarCyInt, docs.
2004-01-13 23:02:34 +00:00