Commit 89b75296 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

oledb32/tests: Fix a use-after-free in test_converttobyrefwstr.

parent 17186413
...@@ -2097,7 +2097,7 @@ static void test_converttobyrefwstr(void) ...@@ -2097,7 +2097,7 @@ static void test_converttobyrefwstr(void)
dst_len = 44; dst_len = 44;
V_VT(&v) = VT_NULL; 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(hr == S_OK, "got %08x\n", hr);
ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status); ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status);
ok(dst_len == 44, "got %ld\n", dst_len); ok(dst_len == 44, "got %ld\n", dst_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment