Commit Graph

48 Commits

Author SHA1 Message Date
Piotr Caban 1063623dfb oleaut32/tests: Show that VARIANT_UserUnmarshal may reuse passed in BSTR.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:34:04 +09:00
Piotr Caban c1974090c6 oleaut32: Reuse safearray passed to LPSAFEARRAY_UserUnmarshal if possible.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:33:38 +09:00
Piotr Caban 37e2acb205 oleaut32: Pass safearray from VARIANT_UserUnmarshal to LPSAFEARRAY_UserUnmarshal so it can be reused.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:33:32 +09:00
Piotr Caban 3815eca268 oleaut32: Set safearray pointer to NULL in LPSAFEARRAY_UserFree.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:33:24 +09:00
Piotr Caban 6183f4fc7d oleaut32/tests: Add tests for safearray unmarshaling into passed variant.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 16:33:13 +09:00
Nikolay Sivov 0533b38f70 oleaut32/tests: Test that user memory functions are not called. 2015-06-16 16:50:41 +09:00
Nikolay Sivov 44360823b9 oleaut32: Use WdtpInterfacePointer_* functions in VARIANT marshalling. 2015-03-09 22:06:21 +09:00
Nikolay Sivov 52d30cc301 oleaut32/tests: Hide details about VARIANT wire header in header testing helper. 2015-03-09 22:06:20 +09:00
Michael Stefaniuc bb83794e28 oleaut32/tests: Compare the correct variants. 2012-04-16 12:05:49 +02:00
Francois Gouget 8375c8e003 oleaut32/tests: Dynamically load some functions that are missing on early NT4 releases. 2012-01-09 12:52:13 +01:00
Alexandre Julliard 25627ad445 oleaut32/tests: Remove some unnecessary constants. 2011-05-19 09:56:46 +02:00
Nikolay Sivov 95416ff904 oleaut32: Unmarshalled safearray is always unlocked. 2011-01-24 12:35:02 +01:00
Nikolay Sivov a5582d77cf oleaut32/tests: Fix safearray leaks, test return value after array destruction. 2011-01-24 12:35:02 +01:00
Michael Stefaniuc 74ce3e53d4 oleaut32/tests: COM cleanup for usrmarshal.c. 2010-12-29 11:59:38 +01:00
Nikolay Sivov b08d3d2656 oleaut32: Fix multidimensional SAFEARRAY marshalling. 2010-10-19 10:58:19 +02:00
Huw Davies 522a00e69a oleaut32: Correctly marshal NULL interface ptrs. 2010-02-25 15:59:47 +01:00
Jeremy White 229fbad9ca oleaut32/tests: Adjust new tests to pass on win9x platforms. 2009-12-18 11:42:50 +01:00
Jeremy White 5284baa82b oleaut32/tests: Check the actual size of safe arrays marshaled, not just projected size. 2009-12-11 17:47:30 +01:00
Jeremy White 6401720daf oleaut32/tests: Avoid a memory leak; spotted by Valgrind. 2009-12-11 17:47:29 +01:00
Jeremy White 7e0c4fa404 usrmarshal: Add a test for marshalling a SAFEARRAY of VT_BSTR. 2009-12-10 11:54:08 +01:00
Alexandre Julliard a0b8ec0e1b oleaut32/tests: Fix the usrmarshal tests on 64-bit. 2009-07-10 19:13:16 +02:00
Paul Vriens f57c603798 oleaut32/tests: Fix test failures and crash on Win9x/WinME. 2009-07-02 12:13:56 +02:00
Rob Shearman 47ae95ccce oleaut32: Fix the SAFEARRAY marshalling on 64-bit platforms.
The pointers should be written as NDR 4-byte fields instead of a
platform-dependent size.
2009-04-07 14:53:43 +02:00
Rob Shearman f545468a2d oleaut32: Initialise more of the context passed into user marshal functions in the tests for these functions.
Enable unmarshall testing for LPSAFEARRAYs and BSTRs which works on
Windows now that enough of the context has been filled in.
2009-02-02 11:55:32 +01:00
Michael Stefaniuc 330e6d86f9 oleaut32/tests: Remove superfluous pointer casts. 2009-01-29 14:05:58 +01:00
Dan Kegel 035f1dd0b0 oleaut32/tests: Initialize reserved fields to unique values. 2008-06-09 19:39:55 +02:00
Rob Shearman 0efbce5112 oleaut32: Fix copy and paste error in VARIANT_UserUnmarshall with VT_UNKNOWN test.
The variant type is VT_UNKNOWN so we should be using V_UNKNOWN, not 
V_VARIANTREF(V_R8) to check the type unmarshalled properly.
2007-12-26 14:02:04 +01:00
Rob Shearman 2a9168e586 oleaut32: Set the number of locks held on the safe arrays in the safe array tests to zero before destroying them, otherwise the operation will fail and leak memory. 2007-12-07 16:34:36 +01:00
Rob Shearman 67a213fc1e oleaut32: Try to re-use existing memory when unmarshalling variants with byref types. 2007-12-07 16:34:28 +01:00
Michael Stefaniuc ab7e33641b oleaut32: Remove superfluous casts of void pointers to other pointer types. 2007-06-27 12:53:28 +02:00
Huw Davies da98b1cb61 oleaut32: Handle marshaling of VARTYPE-less FADF_VARIANT safearrays. 2007-06-25 11:34:39 +02:00
Huw Davies 3c8534f013 oleaut32: Implement marshaling of VT_BYREF interfaces. 2007-06-25 11:34:33 +02:00
Rob Shearman bb08a58965 oleaut32: Clear the input pvar structure in VARIANT_UserUnmarshal to free the data instead of just initializing. 2007-03-20 12:57:42 +01:00
Rob Shearman 3ad77d29ca oleaut32: Make the VARIANT_UserUnmarshal tests work on XP. 2007-03-20 12:56:52 +01:00
Rob Shearman 35772a70d3 oleaut32: Add some tests for user marshaling a VT_UNKNOWN variant. 2007-03-20 12:56:45 +01:00
Huw Davies 2dd3aa6293 oleaut32: Fix marshaling of VARTYPE-less safearrays. 2007-02-05 12:26:14 +01:00
Hans Leidekker 279207b258 oleaut32/tests: Win64 printf format warning fixes. 2006-10-12 20:41:09 +02:00
Francois Gouget b21526925d oleaut32: Fixed compilation in the nameless union case. 2006-10-02 11:54:23 +02:00
Kevin Koltzau 0e8b75bb12 oleaut32: Fix 64bit warnings in tests. 2006-06-19 09:21:19 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Huw Davies 40986cd729 oleaut32: Correctly handle the case when the number of bytes in a BSTR is odd. 2006-05-10 19:24:01 +02:00
Huw Davies df40c966a0 oleaut32: Preserve the 'auto' features before copying over the masked unmarshaled ones. 2006-05-08 21:18:32 +02:00
Huw Davies 696f73a7f5 oleaut32: Rewrite VARIANT user marshaling. 2006-05-07 10:10:30 +02:00
Huw Davies 17ec77f19e oleaut32: Alignment fixes for safearrays. 2006-05-05 21:47:13 +02:00
Huw Davies 74b63d5e0d oleaut32: Fix tests under win2k. 2006-05-05 21:47:02 +02:00
Huw Davies 747f08c8ae oleaut32: Split out the SAFEARRAY and BSTR tests so that they can be used in the upcoming VARIANT tests. 2006-05-05 21:46:47 +02:00
Huw Davies 2e8a74d520 oleaut32: Fix BSTR marshaling to be wire compatible with Windows. 2006-05-05 21:46:32 +02:00
Robert Shearman 385e693e44 ole: Test and implement LPSAFEARRAY marshaling. 2006-01-27 12:54:22 +01:00