[PATCH 0/1] MR8310: propsys/tests: Use correct length for debugstr_wn in test_PropVariantToBSTR.
From: Yuxuan Shui <yshui(a)codeweavers.com> --- dlls/propsys/tests/propsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/propsys/tests/propsys.c b/dlls/propsys/tests/propsys.c index 4314467b51c..749704eb9c2 100644 --- a/dlls/propsys/tests/propsys.c +++ b/dlls/propsys/tests/propsys.c @@ -1980,7 +1980,7 @@ static void test_PropVariantToBSTR(void) ok(hr == S_OK, "PropVariantToBSTR returned %#lx.\n", hr); length = SysStringLen(bstr); ok(length == wcslen(test_bstr), "Unexpected length %u.\n", length); - ok(!wcscmp(bstr, test_bstr), "Unexpected bstr %s.", debugstr_wn(bstr, ARRAY_SIZE(test_bstr))); + ok(!wcscmp(bstr, test_bstr), "Unexpected bstr %s.", debugstr_wn(bstr, length)); SysFreeString(bstr); PropVariantClear(&propvar); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8310
participants (2)
-
Yuxuan Shui -
Yuxuan Shui (@yshui)