mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:43:08 +00:00
[WIN32SS][FONT] Fix GetTextFace function and related (#829)
Google Chrome with -no-sandbox parameter in ReactOS wouldn't display the web page because first-chance exception raised. CORE-14926 - Remove FullName, Style, and FaceName members from TEXTOBJ structure. - Add TextFace member into TEXTOBJ structure. - Add MatchFontName() and MatchFontNames() helper functions. - Fix GetTextFace() and related.
This commit is contained in:
parent
56583f3069
commit
c8749d379b
3 changed files with 69 additions and 14 deletions
|
@ -513,12 +513,12 @@ NtGdiGetTextFaceW(
|
|||
|
||||
TextObj = RealizeFontInit(hFont);
|
||||
ASSERT(TextObj != NULL);
|
||||
fLen = wcslen(TextObj->FaceName) + 1;
|
||||
fLen = wcslen(TextObj->TextFace) + 1;
|
||||
|
||||
if (FaceName != NULL)
|
||||
{
|
||||
Count = min(Count, fLen);
|
||||
Status = MmCopyToCaller(FaceName, TextObj->FaceName, Count * sizeof(WCHAR));
|
||||
Status = MmCopyToCaller(FaceName, TextObj->TextFace, Count * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TEXTOBJ_UnlockText(TextObj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue