mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
[CRT]
* Update fopen_s(). CORE-8080 svn path=/trunk/; revision=63295
This commit is contained in:
parent
721fc08b87
commit
49d0927079
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue