mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
- Add Font attribute support for NtGdiHfontCreate.
svn path=/trunk/; revision=40023
This commit is contained in:
parent
aa42f8869e
commit
89e44e0c4a
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue