https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ce077bb5d37f2aea4602c50d027a24be3f8b3b54

commit ce077bb5d37f2aea4602c50d027a24be3f8b3b54
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Fri Nov 2 16:28:00 2018 +0900
Commit:     GitHub <[email protected]>
CommitDate: Fri Nov 2 16:28:00 2018 +0900

    [WIN32SS][FONT] Add DPRINT1 and ASSERT for font resize failure (#1003)
    
    Add DPRINT1 and ASSERT calls for font resize failure in IntRequestFontSize 
function. JIRA issue: N/A
---
 win32ss/gdi/ntgdi/freetype.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 31a4b4920e..dfdb3768f6 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -3274,7 +3274,11 @@ IntRequestFontSize(PDC dc, PFONTGDI FontGDI, LONG 
lfWidth, LONG lfHeight)
     {
         error = FT_Get_WinFNT_Header(face, &WinFNT);
         if (error)
+        {
+            DPRINT1("%s: Failed to request font size.\n", face->family_name);
+            ASSERT(FALSE);
             return error;
+        }
 
         FontGDI->tmHeight           = WinFNT.pixel_height;
         FontGDI->tmAscent           = WinFNT.ascent;

Reply via email to