André Hentschel nerv@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.
Am 13.03.2012 10:34, schrieb Alexandre Julliard:
André Hentschel nerv@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.