Skip to content

Commit

Permalink
Merge pull request #68 from reactos/fix-fclose
Browse files Browse the repository at this point in the history
[CRT] Import parameter check for fclose from wine
  • Loading branch information
errortek authored Sep 16, 2023
2 parents 39db404 + 9d95e35 commit 31c9518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/lib/crt/stdio/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31c9518

Please sign in to comment.