From d8159c7929083f8cb44422be6c9ab999722a0570 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 20 Nov 2007 01:03:00 +0000 Subject: [PATCH] Fix another missing dca set. svn path=/trunk/; revision=30581 --- reactos/subsystems/win32/win32k/objects/text.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/text.c b/reactos/subsystems/win32/win32k/objects/text.c index 1bf5156d0ea..3be070afc18 100644 --- a/reactos/subsystems/win32/win32k/objects/text.c +++ b/reactos/subsystems/win32/win32k/objects/text.c @@ -3389,6 +3389,7 @@ NtGdiGetTextCharsetInfo( 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 @@ NtGdiGetTextCharsetInfo( 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)