[PATCH 1/1] msvcrt: Set errno in failure path