* _set_errno() returns an errno_t.
* error => value
CORE-8080

svn path=/trunk/; revision=63263
This commit is contained in:
Amine Khaldi 2014-05-12 19:44:41 +00:00
parent a30699ae01
commit 19d92fec00

View file

@ -56,18 +56,18 @@ errno_t CDECL _get_doserrno(unsigned long *pValue)
/********************************************************************* /*********************************************************************
* _set_errno (MSVCRT.@) * _set_errno (MSVCRT.@)
*/ */
int CDECL _set_errno(int error) errno_t CDECL _set_errno(int value)
{ {
*_errno() = error; *_errno() = value;
return 0; return 0;
} }
/********************************************************************* /*********************************************************************
* _set_doserrno (MSVCRT.@) * _set_doserrno (MSVCRT.@)
*/ */
errno_t CDECL _set_doserrno(unsigned long error) errno_t CDECL _set_doserrno(unsigned long value)
{ {
*__doserrno() = error; *__doserrno() = value;
return 0; return 0;
} }