--- D:/Ruby/ruby-2.1.8-i386-mingw32/lib/ruby/2.1.0/win32/registry.rb.original Tue Jan 12 05:21:04 2016 +++ D:/Ruby/ruby-2.1.8-i386-mingw32/lib/ruby/2.1.0/win32/registry.rb Mon Apr 4 08:17:45 2016 @@ -321,11 +321,11 @@ For detail, see the MSDN[http://msdn.microsoft.com end def DeleteValue(hkey, name) - check RegDeleteValue.call(hkey, make_wstr(name)) + check RegDeleteValueW.call(hkey, make_wstr(name)) end def DeleteKey(hkey, name) - check RegDeleteKey.call(hkey, make_wstr(name)) + check RegDeleteKeyW.call(hkey, make_wstr(name)) end def FlushKey(hkey)