Commit Graph

70 Commits

Author SHA1 Message Date
Nikolay Sivov 2ce06e5727 oleaut32: Fix SafeArrayGetElement() for FADF_RECORD arrays. 2014-02-25 14:22:49 -06:00
Nikolay Sivov 4c02dc867f oleaut32: Propagate return codes properly. 2014-02-25 14:22:38 -06:00
Nikolay Sivov 4da741daf1 oleaut32: Fix buffer increment step for VT_RECORD case doing SafeArrayCopyData(). 2014-02-24 09:09:12 -06:00
Nikolay Sivov a4e0fc95a9 oleaut32: Fix SafeArrayPutElement() for FADF_RECORD arrays. 2014-02-24 09:08:57 -06:00
Nikolay Sivov 6f30f699cc oleaut32: No need to VariantClear() before VariantCopy(). 2014-02-19 16:46:56 +01:00
Nikolay Sivov f85644c6f9 oleaut32: Fix destination data release when copying FADF_RECORD arrays. 2014-02-18 10:47:18 +01:00
Nikolay Sivov b058c96136 oleaut32: Mask out certain features on array copy. 2014-01-09 10:55:13 +01:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
André Hentschel ba6bdf9fd6 oleaut32: Remove an unneeded error. 2011-02-09 13:49:06 -06:00
Nikolay Sivov 90090332a2 oleaut32/safearray: Fix allocation error check for array descriptor. 2011-01-17 12:48:07 +01:00
Michael Stefaniuc a3f8fd71e1 oleaut32: Remove superfluous pointer casts. 2009-02-09 14:37:23 +01:00
Andrew Talbot 5af3af2b2f oleaut32: Sign-compare warnings fix. 2008-11-03 14:06:07 +01:00
Michael Stefaniuc f830a12ddb oleaut32: Remove redundant NULL check before SysFreeString (Smatch). 2008-09-25 11:18:59 +02:00
Reece Dunn e22e480f16 oleaut32: Fix the SafeArrayGetVartype tests on Vista and use that behaviour. 2008-07-25 11:29:42 +02:00
Austin English e8dbd66c23 oleaut32: Spelling fixes. 2008-04-14 21:28:38 +02:00
Andrew Talbot 5ea25c62b8 oleaut32: Remove unneeded casts. 2008-01-16 12:16:01 +01:00
Andrew Talbot ac82f20b36 oleaut32: Constify some variables. 2007-07-03 12:29:24 +02:00
Rob Shearman 72a84fbf06 oleaut32: SafeArrayAllocData should succeed when cbElements is 0. 2006-12-28 12:17:11 +01:00
Hans Leidekker ce66f5d684 oleaut32: Win64 printf format warning fixes. 2006-10-13 12:08:47 +02:00
Neil Skrypuch 8cec3cf120 oleaut32: Adding a NULL to a safearray is supposed to crash. 2006-07-25 12:05:28 +02:00
qingdoa daoo f80db874d4 oleaut32: Fix safearray data destruction. 2006-06-09 18:13:22 +02:00
qingdoa daoo 06fcfda9ff oleaut32: safearray: Convert dimension index at the API boundary. 2006-06-06 12:04:43 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Robert Shearman f74dfe3182 oleaut32: Remove deadcode in SafeArrayPutElement.
Remove deadcode in SafeArrayPutElement, as lpBstr cannot be NULL
because of the check at the top of the function on pvData (found by
Coverity).
2006-04-07 13:09:08 +02:00
Robert Shearman 9f1c6bf6bc OLE: Fix SafeArrayCopy for NULL pvData.
It is allowed to copy a SAFEARRAY with a NULL pvData, as long as
cbElements is non-zero. Add a test for this and fix the safe array
code.
2005-12-12 11:52:51 +01:00
Mike McCormack a04b77ddc2 gcc 4.0 warning fixes. 2005-08-08 18:38:29 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +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
Eric Pouech 89f5283432 Some missing const correctness fixes. 2005-01-03 14:50:12 +00:00
Walt Ogburn bb313c9dbe SafeArrayDestroyData - keep pointer, don't destroy data if FADF_STATIC
is set.
2004-10-19 21:08:02 +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
Alexandre Julliard 25e2a320a7 Don't define BEGIN_INTERFACE in unknwn.h. 2004-08-22 21:38:46 +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
Francois Gouget 359c709d59 Assorted spelling and case fixes. 2004-03-31 20:06:10 +00:00
Francois Gouget b948778660 Assorted spelling fixes. 2004-03-23 23:20:16 +00:00
Patrik Stridvall 8f9b09e947 Fixed some issues found by winapi_check. 2004-02-27 21:32:54 +00:00
Marcus Meissner ff16b32499 SafeArrayRedim: Use the correct size for resize too. 2004-01-12 21:06:30 +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
Marcus Meissner 042f8953ff Fixed size calculation on redim if old size was 0. 2003-12-31 18:58:25 +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 c2d6a6b451 Rewrite: Support I8/UI8,RECORD.
Store array bounds in the same order as native.
Add CreateEx, CreateVectorEx, VectorFromBstr, BstrFromVector.
2003-12-15 21:08:42 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Francois Gouget 56aaea2f43 Spelling fixes. 2003-07-09 02:52:57 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Marcus Meissner eee3a24dc9 Fixed index handling for multi dimensional arrays. 2003-06-13 16:35:07 +00:00
Robert Shearman d21e32a04f Use correct type of pointer in SafeArrayCreateVector to avoid memory
corruption. Add traces.
2003-05-19 21:43:20 +00:00
Alexandre Julliard f8aa3b506c Added -Wpointer-arith gcc flag, and fixed the resulting warnings. 2003-01-23 21:32:35 +00:00
Marcus Meissner 8ff278d25e Implemented SafeArray{SetIID,GetIID,SetRecordInfo,GetRecordInfo}.
Added support for FADF_HAVEIID, FADF_RECORD, FADF_HAVEVARTYPE.
Implemented SafeArrayAllocDescriptorEx and SafeArrayGetVarType
correctly.
Fixed second argument of SafeArrayCopyData (it is just SAFEARRAY*).
Changed allocation to include 16 bytes before the SAFEARRAY (to store
IID/VARTYPE/IRecordInfo*).
VARTYPE -> size array was not indexed correctly.
Added lots of testcases for most functionality.
Added IRecordInfo interface definition.
2003-01-02 23:13:56 +00:00
Marcus Meissner 7c290abd85 Fixed VarBstrCmp/Cat .spec entries.
Started regression test for SafeArray functions.
Fixed SafeArrayAllocDescriptor (check bounds, set cDims).
Fixed VARTYPE_SIZE array entries so it matches native.
2002-12-23 02:02:49 +00:00