Skip dash characters in the PIDMask for a MaskedEdit control.

This commit is contained in:
Mike McCormack 2005-09-13 10:33:04 +00:00 committed by Alexandre Julliard
parent 3e507e3ca5
commit b2e2b70d06
1 changed files with 7 additions and 1 deletions

View File

@ -961,6 +961,12 @@ static struct msi_maskedit_info * msi_dialog_parse_groups( LPCWSTR mask )
p++;
for( i=0; i<MASK_MAX_GROUPS; i++ )
{
while (*p=='-')
{
total++;
p++;
}
/* stop at the end of the string */
if( p[0] == 0 || p[0] == '>' )
break;
@ -980,7 +986,7 @@ static struct msi_maskedit_info * msi_dialog_parse_groups( LPCWSTR mask )
p += n;
}
TRACE("%d characters in %d groups\n", total, info->num_groups );
TRACE("%d characters in %d groups\n", total, i );
if( i == MASK_MAX_GROUPS )
ERR("too many groups in PIDTemplate %s\n", debugstr_w(mask));