Added missing GDI heap unlock.
Moved to new debug interface.
This commit is contained in:
parent
31f6bdfadf
commit
7ac5754626
|
@ -14,7 +14,7 @@
|
||||||
#include "dc.h"
|
#include "dc.h"
|
||||||
#include "x11drv.h"
|
#include "x11drv.h"
|
||||||
#include "region.h"
|
#include "region.h"
|
||||||
#include "debug.h"
|
#include "debugtools.h"
|
||||||
#include "heap.h"
|
#include "heap.h"
|
||||||
#include "local.h"
|
#include "local.h"
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ void X11DRV_SetDeviceClipping( DC * dc )
|
||||||
RGNOBJ *obj = (RGNOBJ *) GDI_GetObjPtr(dc->w.hGCClipRgn, REGION_MAGIC);
|
RGNOBJ *obj = (RGNOBJ *) GDI_GetObjPtr(dc->w.hGCClipRgn, REGION_MAGIC);
|
||||||
if (!obj)
|
if (!obj)
|
||||||
{
|
{
|
||||||
ERR(x11drv, "Rgn is 0. Please report this.\n");
|
ERR("Rgn is 0. Please report this.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,8 @@ void X11DRV_SetDeviceClipping( DC * dc )
|
||||||
sizeof(*pXrect) * obj->rgn->numRects );
|
sizeof(*pXrect) * obj->rgn->numRects );
|
||||||
if(!pXrect)
|
if(!pXrect)
|
||||||
{
|
{
|
||||||
WARN(x11drv, "Can't alloc buffer\n");
|
WARN("Can't alloc buffer\n");
|
||||||
|
GDI_HEAP_UNLOCK( dc->w.hGCClipRgn );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue