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
Alberto Massari
059cffd728
Calling SafeArrayDestroy on a destroyed array should be a no-op.
2002-12-12 22:59:07 +00:00
Ove Kaaven
1f5315c80f
Make sure that no files except unknwn.h include wine/obj_base.h
...
directly.
2002-12-05 20:33:07 +00:00
Patrik Stridvall
a3868218d0
Fixed some issues found by winapi_check.
2002-07-19 00:30:16 +00:00
Mike McCormack
b7937afab9
Fixed ordinals to match the Windows values.
...
Added a couple of stubs.
2002-06-20 23:51:21 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Alexandre Julliard
0799c1a780
Added LGPL standard comment, and copyright notices where necessary.
...
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Bill Medland
a51ff76b86
A couple of additions.
2002-01-29 02:44:44 +00:00
Ove Kaaven
fbdfef73f6
If SafeArrayGetElement is called on a variant array, initialize
...
destination variant before copying the array element to it, some badly
behaved apps don't seem to do it themselves.
2002-01-02 21:44:49 +00:00
Ove Kaaven
d63cf5f846
Fixed bugs in safe arrays.
...
- enlarging a safe array didn't clear the new entries
- element access only validated the first dimension
- the validation always failed when the array contained 1 element
2001-10-14 16:07:36 +00:00
Ove Kaaven
9f6d5a068b
Variants and safe arrays is now able to copy BSTR swith embedded null
...
characters. Safe arrays now handle BSTRs and variants.
2001-09-21 21:01:31 +00:00