diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb index b65200be80..2e724e3257 100644 --- a/ext/win32/lib/win32/resolv.rb +++ b/ext/win32/lib/win32/resolv.rb @@ -84,7 +84,7 @@ if info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT end reg.open('Interfaces') do |h| - h.each_key do |iface,| + h.each_key do |iface, | h.open(iface) do |regif| begin [ 'NameServer', 'DhcpNameServer' ].each do |key| diff --git a/ext/win32/lib/win32/resolv9x.rb b/ext/win32/lib/win32/resolv9x.rb index a08a41fdf8..1045bb2e09 100644 --- a/ext/win32/lib/win32/resolv9x.rb +++ b/ext/win32/lib/win32/resolv9x.rb @@ -57,7 +57,7 @@ module Win32 rescue Registry::Error end - reg.each_key do |key,| + reg.each_key do |key, | catch(:not_used) do reg.open(key) do |regdi| dom, ns = get_dhcpinfo_key(version, regdi, iflist)