Re: 1/3 winex11: move XRENDERINFO allocation in a separate function [attempt 2]
7 Oct
2009
7 Oct
'09
9:39 a.m.
Hi Roderick, Roderick Colenbrander wrote:
Hi,
This is an updated version which uses a proper function prototype for alloc_xrenderinfo. Further it checks whether the function succeeded in XRender_SelectFont.
EnterCriticalSection(&xrender_cs); - if(!physDev->xrender) { - physDev->xrender = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, - sizeof(*physDev->xrender)); - physDev->xrender->cache_index = -1; + if(!physDev->xrender) + { + physDev->xrender = alloc_xrenderinfo(); + if(!physDev->xrender) + return 0; You return without leaving the critical section here. Jacek
5915
Age (days ago)
5915
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban