1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2004-06-21 00:27:39 +00:00
parent f9bdcf5495
commit f43b8e20c0
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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;
}