mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CRT] Import parameter check for fclose from wine
Fixes advpack_apitest:DelNode crash.
This commit is contained in:
parent
7cbca9ad8a
commit
d41a4030bc
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue