Huw Davies : riched20: Fix an (incorrect) compiler warning.

Alexandre Julliard julliard at winehq.org
Wed Apr 17 15:14:46 CDT 2013


Module: wine
Branch: master
Commit: 674e2cfd242cd8284a9b45618ee6bc8f20acc233
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=674e2cfd242cd8284a9b45618ee6bc8f20acc233

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Apr 17 12:56:39 2013 +0100

riched20: Fix an (incorrect) compiler warning.

---

 dlls/riched20/paint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index 80d9586..e728b47 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -318,7 +318,7 @@ static void draw_text( ME_Context *c, ME_Run *run, int x, int y, BOOL selected,
 {
     COLORREF text_color = get_text_color( c, run->style, selected );
     COLORREF back_color = selected ? ITextHost_TxGetSysColor( c->editor->texthost, COLOR_HIGHLIGHT ) : 0;
-    COLORREF old_text, old_back;
+    COLORREF old_text, old_back = 0;
     const WCHAR *text = get_text( run, 0 );
     ME_String *masked = NULL;
 




More information about the wine-cvs mailing list