summaryrefslogtreecommitdiff
path: root/ext/win32/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-15 04:23:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-15 04:23:15 +0000
commit73e29d2cf100c19854721dac2441f45846c98779 (patch)
treecb6daf74d7a855919a8de88771bbff8417e33eff /ext/win32/lib
parent486f3f4270102bb79102085168cbf953818f52f6 (diff)
win32/resolv.rb: invert the condition
* ext/win32/lib/win32/resolv.rb: invert the condition to return immediately in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32/lib')
-rw-r--r--ext/win32/lib/win32/resolv.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb
index 8dc9e0d..271084b 100644
--- a/ext/win32/lib/win32/resolv.rb
+++ b/ext/win32/lib/win32/resolv.rb
@@ -44,7 +44,10 @@ nt = Module.new do
getv.call(info)
break info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT
end
-if nt
+if not nt
+ require_relative 'resolv9x'
+ # return # does not work yet
+else
#====================================================================
# Windows NT
#====================================================================
@@ -124,7 +127,5 @@ if nt
end
end
end
-else
- require_relative 'resolv9x'
end
end