Fix a crash when using quotes due to wgettext thread safety issues.

This commit is contained in:
ridiculousfish
2012-02-17 15:55:54 -08:00
parent 51da4856e2
commit 8f1423946f
8 changed files with 52 additions and 42 deletions

View File

@@ -557,7 +557,7 @@ static void tokenize( const wchar_t * const buff, int * const color, const int p
color[i] = -1;
tokenizer tok;
for( tok_init( &tok, buff, TOK_SHOW_COMMENTS );
for( tok_init( &tok, buff, TOK_SHOW_COMMENTS | TOK_SQUASH_ERRORS );
tok_has_next( &tok );
tok_next( &tok ) )
{