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