Commit 7f4a4e16 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Only allow valid styles in msi_dialog_get_style.

parent 4ccee1ae
......@@ -265,11 +265,11 @@ static LPWSTR msi_dialog_get_style( LPCWSTR p, LPCWSTR *rest )
while ((first = strchrW( p, '{' )) && (q = strchrW( first + 1, '}' )))
{
p = first + 1;
if( *p == '\\' || *p == '&' )
p++;
if( *p != '\\' && *p != '&' )
return NULL;
/* 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 == '\\' )
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment