Avoid recursive DeleteDC calls.

oldstable
Alexandre Julliard 2002-04-02 02:48:24 +00:00
parent 1bb69a0c09
commit b60ff098f5
1 changed files with 5 additions and 2 deletions

View File

@ -770,8 +770,11 @@ BOOL WINAPI DeleteDC( HDC hdc )
if (!(dcs = GDI_GetObjPtr( hdcs, DC_MAGIC ))) break;
dc->header.hNext = dcs->header.hNext;
dc->saveLevel--;
GDI_ReleaseObj( hdcs );
DeleteDC( hdcs );
if (dcs->hClipRgn) DeleteObject( dcs->hClipRgn );
if (dcs->hVisRgn) DeleteObject( dcs->hVisRgn );
if (dcs->hGCClipRgn) DeleteObject( dcs->hGCClipRgn );
PATH_DestroyGdiPath(&dcs->path);
GDI_FreeObject( hdcs, dcs );
}
if (!(dc->flags & DC_SAVED))