* Update fopen_s().
CORE-8080

svn path=/trunk/; revision=63295
This commit is contained in:
Amine Khaldi 2014-05-14 17:14:46 +00:00
parent 721fc08b87
commit 49d0927079

View file

@ -3180,11 +3180,9 @@ FILE * CDECL fopen(const char *path, const char *mode)
int CDECL fopen_s(FILE** pFile,
const char *filename, const char *mode)
{
if (!MSVCRT_CHECK_PMT(pFile != NULL) || !MSVCRT_CHECK_PMT(filename != NULL) ||
!MSVCRT_CHECK_PMT(mode != NULL)) {
*_errno() = EINVAL;
return EINVAL;
}
if (!MSVCRT_CHECK_PMT(pFile != NULL)) return EINVAL;
if (!MSVCRT_CHECK_PMT(filename != NULL)) return EINVAL;
if (!MSVCRT_CHECK_PMT(mode != NULL)) return EINVAL;
*pFile = fopen(filename, mode);