Module
Instance Methods
ext/win32/lib/win32/resolv.rb
View on GitHub
# File tmp/rubies/ruby-3.4.1/ext/win32/lib/win32/resolv.rb, line 53
def read_s(key)
type, str = read(key)
unless type == Registry::REG_SZ
warn "Broken registry, #{name}\\#{key} was #{Registry.type2name(type)}, ignored"
return String.new
end
str
end
ad hoc workaround for broken registry