Piotr Caban : msvcrt: Always set fd to -1 in _sopen_s on failure.