Author: jimtabor
Date: Tue Nov 20 04:03:00 2007
New Revision: 30581
URL:
http://svn.reactos.org/svn/reactos?rev=30581&view=rev
Log:
Fix another missing dca set.
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 Tue Nov 20 04:03:00 2007
@@ -3389,6 +3389,7 @@
IN DWORD dwFlags)
{
PDC Dc;
+ PDC_ATTR Dc_Attr;
UINT Ret = DEFAULT_CHARSET, i = 0, fs_fsCsb0 = 0;
HFONT hFont;
PTEXTOBJ TextObj;
@@ -3404,7 +3405,9 @@
SetLastWin32Error(ERROR_INVALID_HANDLE);
return Ret;
}
- hFont = Dc->Dc_Attr.hlfntNew;
+ Dc_Attr = Dc->pDc_Attr;
+ if(!Dc_Attr) Dc_Attr = &Dc->Dc_Attr;
+ hFont = Dc_Attr->hlfntNew;
TextObj = TEXTOBJ_LockText(hFont);
DC_UnlockDc( Dc );
if ( TextObj == NULL)