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.