summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-01 03:12:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-01 03:12:21 +0000
commitb77b7c30d4855734384a095db41a734d315bb8fa (patch)
treeae6cd78921bf626d54145b5485474bf59c3dceb4 /win32
parentff338e4e581cc264abf4c5bfd3501bb77c16335f (diff)
downloadruby-b77b7c30d4855734384a095db41a734d315bb8fa.tar.gz
ruby-b77b7c30d4855734384a095db41a734d315bb8fa.tar.xz
ruby-b77b7c30d4855734384a095db41a734d315bb8fa.zip
2000-02-01
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 412259211..877978db5 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1619,7 +1619,8 @@ myfdopen (int fd, const char *mode)
void
myfdclose(FILE *fp)
{
- fclose(fp);
+ _free_osfhnd(fileno(fp));
+ fclose(fp);
}