Re: [PATCH v2 0/2] Brown-bag fix on top of js/mingw-inherit-only-std-handles
Johannes Sixt <j6t@kdbg.org> writes:
Show 6 quoted lines
> Just like on POSIX the value of errno is indeterminate after a
> successful system call, the value of GetLastError() indeterminate after
> a successful Windows API call. Therefore, the err_win_to_posix() would
> not be able to point at a bogus caller reliably. For this reason, let's
> consider the function as a simple error code translator, and then
> translating ERROR_SUCCESS to 0 (or is there ESUCCESS?) makes total sense.
OK, that makes sense.
Thanks.