From 576b8a59201c336f06eb8a7034cd37c1ef2ab2b9 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 4 Jan 2006 14:49:50 +0100 Subject: [PATCH] msi: Fixes for the MaskedEdit control. Allow MaskedEdit masks that aren't enclosed with <>. Allow the MaskedEdit's edit controls to scroll a bit in case things don't line up. --- dlls/msi/dialog.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index d7b3fdd6808..1384e229caa 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -1129,15 +1129,16 @@ static struct msi_maskedit_info * msi_dialog_parse_groups( LPCWSTR mask ) if( !mask ) return info; - p = strchrW(mask, '<'); - if( !p ) - return info; - info = msi_alloc_zero( sizeof *info ); if( !info ) return info; - p++; + p = strchrW(mask, '<'); + if( p ) + p++; + else + p = mask; + for( i=0; ihwnd, &rect );