Piotr Caban (@piotr) commented about dlls/vccorlib140/tests/vccorlib.c:
check_interface(obj, &IID_IInspectable); check_interface(obj, &IID_IPropertyValue);
if (!(exp_str = test_cases[i].exp_str)){/* For record-like values, __abi_ObjectToString returns the string from GetRuntimeClassName. */hr = IPropertyValue_GetRuntimeClassName(obj, &name);todo_wine ok(hr == S_OK, "got hr %#lx\n", hr);exp_str = WindowsGetStringRawBuffer(name, NULL);
It's probably not safe to call WindowsGetStringRawBuffer if IPropertyValue::GetRuntimeClassName() fails.