From 2dfe646bae7d76ca1a234daf4b168499d07853bf Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 26 Jul 2003 15:38:58 +0000 Subject: * 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 --- ChangeLog | 5 +++++ lib/tmpdir.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ab28122fac..d112374b5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 27 00:37:16 2003 WATANABE Hirofumi + + * lib/tmpdir.rb: use GetWindowsDirectory, not GetSystemDirectory. + [ruby-talk:77073] + Sat Jul 26 21:25:21 2003 NAKAMURA Usaku * io.c (rb_fdopen): set errno if it's zero on win32 platforms. 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) -- cgit v1.2.3