[1/2] msvcrt: Add tmpfile_s implementation (resend)

André Hentschel nerv at dawncrow.de
Sun Mar 18 10:58:26 CDT 2012


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



More information about the wine-devel mailing list