[PATCH v3 2/6] msvcrt: fix error handling for _wgetcwd