[PATCH 2/5] d3d10: Add a stub ID3D10StateBlock implementation.

Henri Verbeet hverbeet at codeweavers.com
Tue Nov 15 07:23:36 CST 2011


On 2011-11-15 06:21, Nikolay Sivov wrote:
> On 11/14/2011 23:11, Henri Verbeet wrote:
>> +static ULONG STDMETHODCALLTYPE
>> d3d10_stateblock_Release(ID3D10StateBlock *iface)
>> +{
>> +    struct d3d10_stateblock *stateblock =
>> impl_from_ID3D10StateBlock(iface);
>> +    ULONG refcount = InterlockedIncrement(&stateblock->refcount);
>> +
>> +    TRACE("%p decreasing refcount to %u.\n", stateblock, refcount);
>> +
>> +    if (!refcount)
>> +        HeapFree(GetProcessHeap(), 0, stateblock);
>> +
>> +    return refcount;
>> +}
> Decrement maybe?
Yes, please use the attached patch instead.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-d3d10-Add-a-stub-ID3D10StateBlock-implementation.patch
Type: application/text
Size: 5856 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111115/a8ffde14/attachment.bin>


More information about the wine-patches mailing list