Piotr Caban : msvcrt: Fixed handling of '\r' when it' s the last character in the buffer in read.