riched20: Use a wchar string literal for the array of neutral chars.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-11-15 23:11:17 +01:00 committed by Alexandre Julliard
parent 80620171ec
commit 12821cbb75
1 changed files with 3 additions and 3 deletions

View File

@ -5310,13 +5310,13 @@ static int __cdecl wchar_comp( const void *key, const void *elem )
static BOOL isurlneutral( WCHAR c )
{
/* NB this list is sorted */
static const WCHAR neutral_chars[] = {'!','\"','\'','(',')',',','-','.',':',';','<','>','?','[',']','{','}'};
static const WCHAR neutral_chars[] = L"!\"'(),-.:;<>?[]{}";
/* Some shortcuts */
if (isalnum( c )) return FALSE;
if (c > neutral_chars[ARRAY_SIZE( neutral_chars ) - 1]) return FALSE;
if (c > L'}') return FALSE;
return !!bsearch( &c, neutral_chars, ARRAY_SIZE( neutral_chars ), sizeof(c), wchar_comp );
return !!bsearch( &c, neutral_chars, ARRAY_SIZE( neutral_chars ) - 1, sizeof(c), wchar_comp );
}
/**