Author: jimtabor
Date: Sun Mar 15 07:42:45 2009
New Revision: 40023
URL:
http://svn.reactos.org/svn/reactos?rev=40023&view=rev
Log:
- Add Font attribute support for NtGdiHfontCreate.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/font.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/font.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/font.c [iso-8859-1] Sun Mar 15 07:42:45
2009
@@ -816,6 +816,18 @@
}
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;
}