[PATCH 1/6] msvcrt: fix error handling for _getcwd