diff options
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r-- | lib/tmpdir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index eaec830b08..bee99c41cb 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) |