summaryrefslogtreecommitdiff
path: root/lib/tmpdir.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 15:38:58 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 15:38:58 +0000
commit2dfe646bae7d76ca1a234daf4b168499d07853bf (patch)
tree2725822789b2b88638f0036dd9fdef841ba665d1 /lib/tmpdir.rb
parentf0b77b0cdefb95e843e4bc40ed3079fa6167c808 (diff)
* 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
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r--lib/tmpdir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index eaec830..bee99c4 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)