Re: [1/2] msvcrt: Add tmpfile_s implementation (resend)
13 Mar
2012
13 Mar
'12
9:34 a.m.
André Hentschel <nerv(a)dawncrow.de> writes:
+int CDECL MSVCRT_tmpfile_s(MSVCRT_FILE** file) +{ + if (!file) { + *MSVCRT__errno() = MSVCRT_EINVAL; + return MSVCRT_EINVAL; + }
That's not the right way to check parameters in _s functions. -- Alexandre Julliard julliard(a)winehq.org
18 Mar
18 Mar
3:58 p.m.
New subject: [1/2] msvcrt: Add tmpfile_s implementation (resend)
Am 13.03.2012 10:34, schrieb Alexandre Julliard:
André Hentschel <nerv(a)dawncrow.de> writes:
+int CDECL MSVCRT_tmpfile_s(MSVCRT_FILE** file) +{ + if (!file) { + *MSVCRT__errno() = MSVCRT_EINVAL; + return MSVCRT_EINVAL; + }
That's not the right way to check parameters in _s functions.
The other way would be to use MSVCRT_CHECK_PMT, but the tests show that this is not correct. -- Best Regards, André Hentschel
5020
Age (days ago)
5025
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
André Hentschel