[PATCH 1/4] oleaut32: Add tests for safearray unmarshaling into passed variant
Dmitry Timoshkov
dmitry at baikal.ru
Tue Jan 12 20:47:33 CST 2016
Hi Piotr,
Piotr Caban <piotr at codeweavers.com> wrote:
> @@ -1316,11 +1316,19 @@ static void test_marshal_VARIANT(void)
> ok(*wirev, "wv[6] %08x\n", *wirev); /* win2k: this is lpsa. winxp: this is (char*)lpsa + 1 */
> wirev++;
> check_safearray(wirev, lpsa);
> - VariantInit(&v2);
> + mem = CoTaskMemAlloc(1024);
> + lpsa_copy = lpsa2 = SafeArrayCreate(VT_I8, 1, &sab);
> + CoTaskMemFree(mem);
> + mem = lpsa2->pvData;
> + V_VT(&v2) = VT_UI4 | VT_ARRAY | VT_BYREF;
> + V_ARRAYREF(&v2) = &lpsa2;
Looks like the result of CoTaskMemAlloc/CoTaskMemFree is not used.
--
Dmitry.
More information about the wine-devel
mailing list