Jan Sikorski (@jsikorski) commented about dlls/wined3d/sampler.c:
ULONG CDECL wined3d_sampler_decref(struct wined3d_sampler *sampler) { ULONG refcount = wined3d_atomic_decrement_mutex_lock(&sampler->refcount);
There's one more here that you might want to change..