Skip dash characters in the PIDMask for a MaskedEdit control.
This commit is contained in:
parent
3e507e3ca5
commit
b2e2b70d06
|
@ -961,6 +961,12 @@ static struct msi_maskedit_info * msi_dialog_parse_groups( LPCWSTR mask )
|
||||||
p++;
|
p++;
|
||||||
for( i=0; i<MASK_MAX_GROUPS; i++ )
|
for( i=0; i<MASK_MAX_GROUPS; i++ )
|
||||||
{
|
{
|
||||||
|
while (*p=='-')
|
||||||
|
{
|
||||||
|
total++;
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
|
||||||
/* stop at the end of the string */
|
/* stop at the end of the string */
|
||||||
if( p[0] == 0 || p[0] == '>' )
|
if( p[0] == 0 || p[0] == '>' )
|
||||||
break;
|
break;
|
||||||
|
@ -980,7 +986,7 @@ static struct msi_maskedit_info * msi_dialog_parse_groups( LPCWSTR mask )
|
||||||
p += n;
|
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 )
|
if( i == MASK_MAX_GROUPS )
|
||||||
ERR("too many groups in PIDTemplate %s\n", debugstr_w(mask));
|
ERR("too many groups in PIDTemplate %s\n", debugstr_w(mask));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue