From a9a3bc7b149e707d35ea1df4db1e2d8db2977df1 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 12 Sep 2005 10:11:23 +0000 Subject: [PATCH] Fix an uninitialized variable problem. --- dlls/msi/dialog.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index be98cbc9f7a..713de00a8d2 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -994,7 +994,6 @@ static void msi_maskedit_create_children( struct msi_maskedit_info *info ) { DWORD width, height, style, wx, ww; - LPCWSTR text, font = NULL; RECT rect; HWND hwnd; UINT i; @@ -1006,9 +1005,6 @@ msi_maskedit_create_children( struct msi_maskedit_info *info ) width = rect.right - rect.left; height = rect.bottom - rect.top; - if( text ) - font = msi_dialog_get_style( &text ); - for( i = 0; i < info->num_groups; i++ ) { wx = (info->group[i].ofs * width) / info->num_chars; @@ -1024,8 +1020,7 @@ msi_maskedit_create_children( struct msi_maskedit_info *info ) SendMessageW( hwnd, EM_LIMITTEXT, info->group[i].len, 0 ); - msi_dialog_set_font( info->dialog, hwnd, - font ? font : info->dialog->default_font ); + msi_dialog_set_font( info->dialog, hwnd, info->dialog->default_font ); info->group[i].hwnd = hwnd; } } -- 2.11.4.GIT