Commit Graph

67 Commits

Author SHA1 Message Date
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
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