mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- recurse into IntGdiDeleteDC directly, instead of going back to NtGdiDeleteObjectApp and pass Force parameter on.
- add a FIXME for dangerous code svn path=/trunk/; revision=32111
This commit is contained in:
parent
edff92650c
commit
73bf020856
1 changed files with 2 additions and 2 deletions
|
@ -961,7 +961,7 @@ IntGdiDeleteDC(HDC hDC, BOOL Force)
|
|||
DC_SetNextDC (DCToDelete, DC_GetNextDC (savedDC));
|
||||
DCToDelete->saveLevel--;
|
||||
DC_UnlockDc( savedDC );
|
||||
NtGdiDeleteObjectApp (savedHDC);
|
||||
IntGdiDeleteDC(savedHDC, Force);
|
||||
}
|
||||
|
||||
/* Free GDI resources allocated to this DC */
|
||||
|
@ -2475,7 +2475,7 @@ DC_AllocateDcAttr(HDC hDC)
|
|||
{
|
||||
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)hDC);
|
||||
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
|
||||
|
||||
// FIXME: dc could have been deleted!!! use GDIOBJ_InsertUserData
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
RtlZeroMemory(NewMem, MemSize);
|
||||
|
|
Loading…
Reference in a new issue