* 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:
parent
f9bdcf5495
commit
f43b8e20c0
@ -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>
|
Sun Jun 20 21:12:54 2004 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* lib/net/ftp.rb (binary=): send TYPE commands only once.
|
* lib/net/ftp.rb (binary=): send TYPE commands only once.
|
||||||
|
@ -1373,6 +1373,7 @@ rb_w32_opendir(const char *filename)
|
|||||||
|
|
||||||
fh = FindFirstFile(scanname, &fd);
|
fh = FindFirstFile(scanname, &fd);
|
||||||
if (fh == INVALID_HANDLE_VALUE) {
|
if (fh == INVALID_HANDLE_VALUE) {
|
||||||
|
errno = map_errno(GetLastError());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user