[PATCH] msvcrt: Avoid null pointer access exceptions.