mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 12:20:21 +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,
|
int CDECL fopen_s(FILE** pFile,
|
||||||
const char *filename, const char *mode)
|
const char *filename, const char *mode)
|
||||||
{
|
{
|
||||||
if (!MSVCRT_CHECK_PMT(pFile != NULL) || !MSVCRT_CHECK_PMT(filename != NULL) ||
|
if (!MSVCRT_CHECK_PMT(pFile != NULL)) return EINVAL;
|
||||||
!MSVCRT_CHECK_PMT(mode != NULL)) {
|
if (!MSVCRT_CHECK_PMT(filename != NULL)) return EINVAL;
|
||||||
*_errno() = EINVAL;
|
if (!MSVCRT_CHECK_PMT(mode != NULL)) return EINVAL;
|
||||||
return EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
*pFile = fopen(filename, mode);
|
*pFile = fopen(filename, mode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue