- Add Font attribute support for NtGdiHfontCreate.

svn path=/trunk/; revision=40023
This commit is contained in:
James Tabor 2009-03-15 04:42:45 +00:00
parent aa42f8869e
commit 89e44e0c4a

View file

@ -816,6 +816,18 @@ NtGdiHfontCreate(
}
TEXTOBJ_UnlockText(TextObj);
if (pvCliData && hNewFont)
{
// FIXME: use GDIOBJ_InsertUserData
KeEnterCriticalRegion();
{
INT Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)hNewFont);
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
Entry->UserData = pvCliData;
}
KeLeaveCriticalRegion();
}
return hNewFont;
}