msi: Only allow valid styles in msi_dialog_get_style.
This commit is contained in:
parent
4ccee1ae49
commit
7f4a4e161f
|
@ -265,11 +265,11 @@ static LPWSTR msi_dialog_get_style( LPCWSTR p, LPCWSTR *rest )
|
||||||
while ((first = strchrW( p, '{' )) && (q = strchrW( first + 1, '}' )))
|
while ((first = strchrW( p, '{' )) && (q = strchrW( first + 1, '}' )))
|
||||||
{
|
{
|
||||||
p = first + 1;
|
p = first + 1;
|
||||||
if( *p == '\\' || *p == '&' )
|
if( *p != '\\' && *p != '&' )
|
||||||
p++;
|
return NULL;
|
||||||
|
|
||||||
/* little bit of sanity checking to stop us getting confused with RTF */
|
/* little bit of sanity checking to stop us getting confused with RTF */
|
||||||
for( i=p; i<q; i++ )
|
for( i=++p; i<q; i++ )
|
||||||
if( *i == '}' || *i == '\\' )
|
if( *i == '}' || *i == '\\' )
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue