mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[CRT] Import parameter check for fclose from wine
Fixes advpack_apitest:DelNode crash.
This commit is contained in:
parent
7cbca9ad8a
commit
d41a4030bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user