14 Mar
2014
14 Mar
'14
3:27 p.m.
On 14 March 2014 14:50, Stefan Dösinger <stefan(a)codeweavers.com> wrote:
+ if ((old = wined3d_private_store_get_private_data(store, guid)) && old->size == data_size) + { + IUnknown *release = NULL; + if (old->flags & WINED3DSPD_IUNKNOWN) + release = old->content.object; + memcpy(old->content.data, ptr, data_size); + old->flags = flags; + if (flags & WINED3DSPD_IUNKNOWN) + IUnknown_AddRef(old->content.object); + if (release) + IUnknown_Release(release); + return WINED3D_OK; + } What is the motivation for this? It certainly doesn't make the code any prettier.