diff options
Diffstat (limited to 'win32/win32sck.c')
-rw-r--r-- | win32/win32sck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32sck.c b/win32/win32sck.c index 0ce53c376b..594a2e3099 100644 --- a/win32/win32sck.c +++ b/win32/win32sck.c @@ -431,6 +431,7 @@ my_fclose (FILE *pf) win32_fflush(pf); err = closesocket(osf); if (err == 0) { + _set_osfhnd(fileno(pf), INVALID_HANDLE_VALUE); (void)fclose(pf); /* handle already closed, ignore error */ return 0; } |