From 89b75296128e8c2cadc77cb06ecd7faa1f80d012 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sun, 26 Feb 2017 23:52:24 -0700 Subject: [PATCH] oledb32/tests: Fix a use-after-free in test_converttobyrefwstr. Signed-off-by: Alex Henrie Signed-off-by: Alistair Leslie-Hughes Signed-off-by: Alexandre Julliard --- dlls/oledb32/tests/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 405e728ae9b..0e4a834d33e 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -2097,7 +2097,7 @@ static void test_converttobyrefwstr(void) dst_len = 44; V_VT(&v) = VT_NULL; - hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_BYREF | DBTYPE_WSTR, 0, &dst_len, &v, dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_BYREF | DBTYPE_WSTR, 0, &dst_len, &v, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); ok(hr == S_OK, "got %08x\n", hr); ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status); ok(dst_len == 44, "got %ld\n", dst_len);