Skip to content

Commit

Permalink
* lib/tmpdir.rb: use GetWindowsDirectory, not GetSystemDirectory. [ru…
Browse files Browse the repository at this point in the history
…by-talk:77073]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Jul 26, 2003
1 parent f0b77b0 commit 2dfe646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/tmpdir.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 2dfe646

Please sign in to comment.