Skip the first character of a font identifier if it's \ or &.

This commit is contained in:
Mike McCormack 2005-09-22 10:54:56 +00:00 committed by Alexandre Julliard
parent 1d29654355
commit 994382b2ee
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ static LPWSTR msi_dialog_get_style( LPCWSTR p, LPCWSTR *rest )
q = strchrW( p, '}' ); q = strchrW( p, '}' );
if( !q ) if( !q )
return ret; return ret;
if( *p++ != '\\' ) if( *p == '\\' || *p == '&' )
return ret; p++;
/* 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++ )