Author: jimtabor
Date: Mon Nov 19 13:36:23 2007
New Revision: 30575
URL:
http://svn.reactos.org/svn/reactos?rev=30575&view=rev
Log:
Fireball found one I missed.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/text.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/text.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/text.c Mon Nov 19 13:36:23 2007
@@ -3852,6 +3852,7 @@
)
{
PDC Dc;
+ PDC_ATTR Dc_Attr;
HFONT hFont;
PTEXTOBJ TextObj;
NTSTATUS Status;
@@ -3864,7 +3865,9 @@
SetLastWin32Error(ERROR_INVALID_HANDLE);
return FALSE;
}
- hFont = Dc->Dc_Attr.hlfntNew;
+ Dc_Attr = Dc->pDc_Attr;
+ if(!Dc_Attr) Dc_Attr = &Dc->Dc_Attr;
+ hFont = Dc_Attr->hlfntNew;
DC_UnlockDc(Dc);
TextObj = TEXTOBJ_LockText(hFont);