10 Nov
2025
10 Nov
'25
11:44 a.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9403#note_121333