diff --git a/reactos/subsys/win32k/objects/text.c b/reactos/subsys/win32k/objects/text.c index 703e2da39cc..1e5d7053499 100644 --- a/reactos/subsys/win32k/objects/text.c +++ b/reactos/subsys/win32k/objects/text.c @@ -2577,7 +2577,7 @@ NtGdiGetTextFace(HDC hDC, INT Count, LPWSTR FaceName) hFont = Dc->w.hFont; DC_UnlockDc(Dc); - TextObj = TEXTOBJ_LockText(Dc->w.hFont); + TextObj = TEXTOBJ_LockText(hFont); ASSERT(TextObj != NULL); Count = min(Count, wcslen(TextObj->logfont.lfFaceName)); Status = MmCopyToCaller(FaceName, TextObj->logfont.lfFaceName, Count * sizeof(WCHAR));