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

* lib/tmpdir.rb: use GetWindowsDirectory, not GetSystemDirectory. [ruby-talk:77073]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-07-26 15:38:58 +00:00
parent f0b77b0cde
commit 2dfe646bae
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jul 27 00:37:16 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/tmpdir.rb: use GetWindowsDirectory, not GetSystemDirectory.
[ruby-talk:77073]
Sat Jul 26 21:25:21 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_fdopen): set errno if it's zero on win32 platforms.

View file

@ -15,7 +15,7 @@ class Dir
begin
getdir = Win32API.new('kernel32', 'GetSystemWindowsDirectory', 'PL', 'L')
rescue RuntimeError
getdir = Win32API.new('kernel32', 'GetSystemDirectory', 'PL', 'L')
getdir = Win32API.new('kernel32', 'GetWindowsDirectory', 'PL', 'L')
end
getdir.call(windir, windir.size)
windir = File.expand_path(windir.rstrip.untaint)