[PATCH 1/2] msvcirt: Correct the behavior of filebuf::setbuf().