summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-21 00:27:39 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-21 00:27:39 +0000
commitf43b8e20c0f6c53030ed23e41363fc74a3f871cb (patch)
tree2ce0699fb747582e6516f186255709656c21a6ed /win32
parentf9bdcf54952717b79e2ae274bfc4f2b14187c726 (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
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;
}