[PATCH v2 2/2] propsys/tests: Add VariantToStringWithDefault tests.
Nikolay Sivov
nsivov at codeweavers.com
Mon Mar 28 00:15:05 CDT 2022
On 3/28/22 03:16, Mohamad Al-Jaf wrote:
> + V_VT(&var) = VT_BSTR;
> + V_BSTR(&var) = SysAllocString(wstr_empty);
> + result = VariantToStringWithDefault(&var, default_value);
> + ok(!lstrcmpW(result, wstr_empty), "Unexpected value %s\n", wine_dbgstr_w(result));
> + SysFreeString(V_BSTR(&var));
Same as with previous version you sent. The function returns pointer
directly, so let's test for that, instead of string comparison.
Another useful test would be with default_value == NULL.
More information about the wine-devel
mailing list