12 Jun
2022
12 Jun
'22
9:34 a.m.
On 6/12/22 08:31, Ziqing Hui wrote:
+ if (!wcscmp(name, L"DisplayName") + || !wcscmp(name, L"Author") + || !wcscmp(name, L"Category") + || !wcscmp(name, L"Description")) + { + if (type != D2D1_PROPERTY_TYPE_STRING) + return E_INVALIDARG; + ++reg->system_property_count; + }
That's not going to work for nested properties, that likely can have same names as system ones.
+ if (j > entry->property_count) + { + hr = D2DERR_INVALID_PROPERTY; + goto done; + } Should it be j == entry->property_count ?