mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32/registry.rb: fix runtime errors
* ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumKey): size of the name is in WCHARs, not in bytes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cf9b6694f
commit
14695c4c1a
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 24 16:35:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumKey):
|
||||
size of the name is in WCHARs, not in bytes.
|
||||
|
||||
Tue Sep 24 14:07:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* gc.c (free_method_cache_entry_i): unused function
|
||||
|
@ -31,7 +36,7 @@ Tue Sep 24 12:51:07 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
Constants.
|
||||
|
||||
* ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumValue):
|
||||
size of the name is in WCHARs, not in bytes
|
||||
size of the name is in WCHARs, not in bytes.
|
||||
|
||||
Mon Sep 23 22:16:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
|
|
|
@ -298,7 +298,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|||
size = packdw(Constants::MAX_KEY_LENGTH)
|
||||
wtime = ' ' * 8
|
||||
check RegEnumKeyExW.call(hkey, index, name, size, 0, 0, 0, wtime)
|
||||
[ name[0, unpackdw(size)/WCHAR_SIZE].encode, unpackqw(wtime) ]
|
||||
[ name[0, unpackdw(size)].encode, unpackqw(wtime) ]
|
||||
end
|
||||
|
||||
def QueryValue(hkey, name)
|
||||
|
|
Loading…
Reference in a new issue