Added patch to add missing initialization in create_glyphrunanalysis.

This commit is contained in:
Sebastian Lackner 2017-04-09 05:24:24 +02:00
parent c372796653
commit c081ded2be
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From cc25929d3a152ee70f0f779091d82da88010f2ae Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Mon, 3 Apr 2017 08:14:08 +0300
Subject: dwrite: Added missing max bitmap size initialization.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
dlls/dwrite/font.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index e89d0a825a..4e35ceab2e 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -5203,6 +5203,7 @@ HRESULT create_glyphrunanalysis(const struct glyphrunanalysis_desc *desc, IDWrit
analysis->flags = 0;
analysis->bitmap = NULL;
+ analysis->max_glyph_bitmap_size = 0;
analysis->ppdip = desc->ppdip;
analysis->origin.x = desc->origin_x * desc->ppdip;
analysis->origin.y = desc->origin_y * desc->ppdip;
--
2.11.0

View File

@ -147,6 +147,7 @@ patch_enable_all ()
enable_dsound_EAX="$1"
enable_dsound_Fast_Mixer="$1"
enable_dsound_Revert_Cleanup="$1"
enable_dwrite_Missing_Initialization="$1"
enable_dxdiagn_Display_Information="$1"
enable_dxdiagn_Enumerate_DirectSound="$1"
enable_dxdiagn_GetChildContainer_Leaf_Nodes="$1"
@ -671,6 +672,9 @@ patch_enable ()
dsound-Revert_Cleanup)
enable_dsound_Revert_Cleanup="$2"
;;
dwrite-Missing_Initialization)
enable_dwrite_Missing_Initialization="$2"
;;
dxdiagn-Display_Information)
enable_dxdiagn_Display_Information="$2"
;;
@ -3941,6 +3945,18 @@ if test "$enable_dsound_EAX" -eq 1; then
) >> "$patchlist"
fi
# Patchset dwrite-Missing_Initialization
# |
# | Modified files:
# | * dlls/dwrite/font.c
# |
if test "$enable_dwrite_Missing_Initialization" -eq 1; then
patch_apply dwrite-Missing_Initialization/0001-dwrite-Added-missing-max-bitmap-size-initialization.patch
(
printf '%s\n' '+ { "Nikolay Sivov", "dwrite: Added missing max bitmap size initialization.", 1 },';
) >> "$patchlist"
fi
# Patchset dxdiagn-Display_Information
# |
# | This patchset fixes the following Wine bugs: