On Sun, 2 May 2021, Nikolay Sivov wrote: [...]
+LONG properties_add_ref(domdoc_properties* properties) {
- if (properties)
- LONG ref = InterlockedExchangeAdd(&properties->refs, 1) + 1;
- TRACE("(%p)->(%d)\n", properties, ref);
- return ref;
+}
[...]
Could we use InterlockedIncrement for that?
Yes. Sending an updated patch...