mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 11:48:03 +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
|
@ -961,7 +961,7 @@ IntGdiDeleteDC(HDC hDC, BOOL Force)
|
||||||
DC_SetNextDC (DCToDelete, DC_GetNextDC (savedDC));
|
DC_SetNextDC (DCToDelete, DC_GetNextDC (savedDC));
|
||||||
DCToDelete->saveLevel--;
|
DCToDelete->saveLevel--;
|
||||||
DC_UnlockDc( savedDC );
|
DC_UnlockDc( savedDC );
|
||||||
NtGdiDeleteObjectApp (savedHDC);
|
IntGdiDeleteDC(savedHDC, Force);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free GDI resources allocated to this DC */
|
/* Free GDI resources allocated to this DC */
|
||||||
|
@ -2475,7 +2475,7 @@ DC_AllocateDcAttr(HDC hDC)
|
||||||
{
|
{
|
||||||
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)hDC);
|
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)hDC);
|
||||||
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
|
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
|
||||||
|
// FIXME: dc could have been deleted!!! use GDIOBJ_InsertUserData
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
RtlZeroMemory(NewMem, MemSize);
|
RtlZeroMemory(NewMem, MemSize);
|
||||||
|
|
Loading…
Reference in a new issue