diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 15:38:58 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 15:38:58 +0000 |
commit | d585ccac694056a41cf0505fff3730475acfaf37 (patch) | |
tree | 2725822789b2b88638f0036dd9fdef841ba665d1 | |
parent | 568e5b7d3d1ea08b27e8b6d27c232bb02013d980 (diff) | |
download | ruby-d585ccac694056a41cf0505fff3730475acfaf37.tar.gz ruby-d585ccac694056a41cf0505fff3730475acfaf37.tar.xz ruby-d585ccac694056a41cf0505fff3730475acfaf37.zip |
* lib/tmpdir.rb: use GetWindowsDirectory, not GetSystemDirectory. [ruby-talk:77073]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/tmpdir.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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. diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index eaec830b0..bee99c41c 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -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) |