Johannes Sixt <j6t@xxxxxxxx> writes: > 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.