mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
- Add Font attribute support for NtGdiHfontCreate.
svn path=/trunk/; revision=40023
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user