Fixed calculation of buffer length after switch of window text to
unicode.

1 file changed