PVOID NewMem = NULL;
PDC pDC;
- KeEnterCriticalRegion();
{
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)hDC);
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
DPRINT1("DC_ATTR not allocated!\n");
}
}
- KeLeaveCriticalRegion();
pDC = DC_LockDc(hDC);
ASSERT(pDC->pdcattr == &pDC->dcattr);
if (NewMem)
pDC->pdcattr = &pDC->dcattr;
DC_UnlockDc(pDC);
- KeEnterCriticalRegion();
{
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)DCToFree);
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
Entry->UserData = NULL;
}
}
- KeLeaveCriticalRegion();
}
}
if (pAttr)
{
- KeEnterCriticalRegion();
FreeObjectAttr(pAttr);
Entry->UserData = NULL;
- KeLeaveCriticalRegion();
}
break;
level functions.
*/
// FIXME! HAX!!! Remove this once we get everything right!
- KeEnterCriticalRegion();
Index = GDI_HANDLE_GET_INDEX(hRgn);
Entry = &GdiHandleTable->Entries[Index];
if (Entry->UserData) FreeObjectAttr(Entry->UserData);
Entry->UserData = NULL;
- KeLeaveCriticalRegion();
//
if ((OwnerMask == GDI_OBJ_HMGR_PUBLIC) || OwnerMask == GDI_OBJ_HMGR_NONE)
{
}
}
- KeEnterCriticalRegion();
Index = GDI_HANDLE_GET_INDEX(hReg);
Entry = &GdiHandleTable->Entries[Index];
Entry->UserData = AllocateObjectAttr();
- KeLeaveCriticalRegion();
EMPTY_REGION(pReg);
pReg->rdh.dwSize = sizeof(RGNDATAHEADER);
if (pRgn)
{
- KeEnterCriticalRegion();
Index = GDI_HANDLE_GET_INDEX(hRgn);
Entry = &GdiHandleTable->Entries[Index];
pRgn_Attr = Entry->UserData;
pid = (HANDLE)((ULONG_PTR)Entry->ProcessId & ~0x1);
- KeLeaveCriticalRegion();
if ( pid == NtCurrentTeb()->ClientId.UniqueProcess &&
pRgn_Attr )
if (pRgn)
{
- KeEnterCriticalRegion();
Index = GDI_HANDLE_GET_INDEX(pRgn->BaseObject.hHmgr);
Entry = &GdiHandleTable->Entries[Index];
pRgn_Attr = Entry->UserData;
pid = (HANDLE)((ULONG_PTR)Entry->ProcessId & ~0x1);
- KeLeaveCriticalRegion();
if ( pid == NtCurrentTeb()->ClientId.UniqueProcess &&
pRgn_Attr )