[CRT] Import parameter check for fclose from wine

Fixes advpack_apitest:DelNode crash.
This commit is contained in:
Timo Kreuzer 2023-09-16 18:49:51 +03:00
parent 7cbca9ad8a
commit d41a4030bc

View File

@ -2784,6 +2784,8 @@ int CDECL fclose(FILE* file)
{
int r, flag;
if (!MSVCRT_CHECK_PMT(file != NULL)) return EOF;
_lock_file(file);
flag = file->_flag;
free(file->_tmpfname);