mirror of
https://github.com/reactos/wine.git
synced 2024-12-14 07:08:41 +00:00
oledb32/tests: Do not use pointer to freed memory (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
14206495e3
commit
97170a8a80
@ -2266,7 +2266,7 @@ static void test_converttobyrefstr(void)
|
||||
|
||||
dst_len = 44;
|
||||
V_VT(&v) = VT_NULL;
|
||||
hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_STR | DBTYPE_BYREF, 0, &dst_len, &v, dst, sizeof(dst), 0, &dst_status, 0, 0, 0);
|
||||
hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_STR | DBTYPE_BYREF, 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);
|
||||
|
Loading…
Reference in New Issue
Block a user