diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-21 00:27:39 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-21 00:27:39 +0000 |
commit | f43b8e20c0f6c53030ed23e41363fc74a3f871cb (patch) | |
tree | 2ce0699fb747582e6516f186255709656c21a6ed | |
parent | f9bdcf54952717b79e2ae274bfc4f2b14187c726 (diff) | |
download | ruby-f43b8e20c0f6c53030ed23e41363fc74a3f871cb.tar.gz |
* win32/win32.c (rb_w32_opendir): should set errno if error occurs
when calling OS API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win32/win32.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Jun 21 09:24:51 2004 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (rb_w32_opendir): should set errno if error occurs + when calling OS API. + Sun Jun 20 21:12:54 2004 Shugo Maeda <shugo@ruby-lang.org> * lib/net/ftp.rb (binary=): send TYPE commands only once. diff --git a/win32/win32.c b/win32/win32.c index 86596136e4..8059a1315d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1373,6 +1373,7 @@ rb_w32_opendir(const char *filename) fh = FindFirstFile(scanname, &fd); if (fh == INVALID_HANDLE_VALUE) { + errno = map_errno(GetLastError()); return NULL; } |