diff options
-rw-r--r-- | lib/chef/win32/registry.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb index 50243172b0..4f7f2b2d52 100644 --- a/lib/chef/win32/registry.rb +++ b/lib/chef/win32/registry.rb @@ -22,7 +22,9 @@ require_relative "../mixin/wide_string" if RUBY_PLATFORM.match?(/mswin|mingw32|windows/) require "win32/api" - Win32.autoload :Registry, File.expand_path("../monkey_patches/win32/registry", __dir__) + module Win32 + autoload :Registry, File.expand_path("../monkey_patches/win32/registry", __dir__) + end require_relative "api/registry" end |