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