[PATCH] ddraw: Grow indexbuffer as needed (now with overflow check)
Stefan Dösinger
stefandoesinger at gmx.at
Thu Jun 24 05:07:49 CDT 2010
Am 24.06.2010 um 11:30 schrieb Mikko Rasa:
> On 24.06.2010 12:07, Stefan Dösinger wrote:
>>
>> Am 23.06.2010 um 21:57 schrieb Mikko Rasa:
>>> + if(!size)
>>> + {
>>> + ERR("UINT overflow while trying to grow indexbuffer to hold %u indices\n", IndexCount);
>>> + return D3DERR_TOOMANYPRIMITIVES;
>>> + }
>>> + }
>> You have to release the ddraw lock before returning from the function(LeaveCriticalSection(&ddraw_cs))
>
> Doh. Fixed that; anything else that should be rectified before I resubmit?
Nothing I can spot so far
More information about the wine-devel
mailing list