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