Nikolay Sivov <bungleh...@gmail.com> writes: > @@ -775,6 +777,16 @@ STATUSBAR_SetTextT (STATUS_INFO *infoPtr, INT nPart, > WORD style, > strcpyW (ntext, text); > } else ntext = 0; > > + /* replace nonprintable characters with spaces */ > + if (ntext) { > + idx = ntext; > + while (*idx) { > + if(!isprintW(*idx)) > + *idx = space; > + idx++;
This would need some test cases with various invalid chars to confirm that isprintW is the right check to use. -- Alexandre Julliard julli...@winehq.org