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

commit 3a323c3de0b9721cb1981080ecee68c30388e5ef
Author:     Thomas Faber <[email protected]>
AuthorDate: Fri Oct 15 22:35:32 2021 -0400
Commit:     Thomas Faber <[email protected]>
CommitDate: Fri Oct 29 22:06:49 2021 -0400

    [WIN32K] Fix uninitialized bResult in IntExtTextOutW.
    
    Powered by clang-cl.
---
 win32ss/gdi/ntgdi/freetype.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 55bb3612e45..b56aab526d6 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -6168,6 +6168,7 @@ IntExtTextOutW(
                 {
                     DPRINT1("Failed to render glyph! [index: %d]\n", 
glyph_index);
                     IntUnLockFreeType();
+                    bResult = FALSE;
                     goto Cleanup;
                 }
 
@@ -6243,6 +6244,7 @@ IntExtTextOutW(
             {
                 DPRINT1("Failed to load and render glyph! [index: %d]\n", 
glyph_index);
                 IntUnLockFreeType();
+                bResult = FALSE;
                 goto Cleanup;
             }
 
@@ -6256,6 +6258,7 @@ IntExtTextOutW(
             {
                 DPRINT1("Failed to render glyph! [index: %d]\n", glyph_index);
                 IntUnLockFreeType();
+                bResult = FALSE;
                 goto Cleanup;
             }
 

Reply via email to