mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
Fireball found one I missed.
svn path=/trunk/; revision=30575
This commit is contained in:
parent
61705cebb5
commit
49fd02d478
|
@ -3852,6 +3852,7 @@ NtGdiGetTextFaceW(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PDC Dc;
|
PDC Dc;
|
||||||
|
PDC_ATTR Dc_Attr;
|
||||||
HFONT hFont;
|
HFONT hFont;
|
||||||
PTEXTOBJ TextObj;
|
PTEXTOBJ TextObj;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -3864,7 +3865,9 @@ NtGdiGetTextFaceW(
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return FALSE;
|
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);
|
DC_UnlockDc(Dc);
|
||||||
|
|
||||||
TextObj = TEXTOBJ_LockText(hFont);
|
TextObj = TEXTOBJ_LockText(hFont);
|
||||||
|
|
Loading…
Reference in a new issue