Bug #4203

broken RegCreateKeyExA definition in registry.rb

Added by Rafał Michalski almost 5 years ago. Updated over 4 years ago.

Assignee:Luis Lavena
ruby -v:ruby 1.9.2p0 (2010-08-18) [i386-mingw32] Backport:


in ext/dl/win32/lib/win32/registry.rb:

definition of advapi32.dll function: RegCreateKeyExA is broken (missing one argument). See: http://msdn.microsoft.com/en-us/library/ms724844%28v=vs.85%29.aspx
This bug was introduced in 1.9.2.

It is impossible (since 1.9.2) to create registry keys with Win32::Registry.create (raises ArgumentError) without this fix.

ruby-changes.patch Magnifier (1.24 KB) Rafał Michalski, 12/25/2010 09:45 PM


#1 Updated by Luis Lavena almost 5 years ago


Indeed is a bug, will apply patch to trunk first.

Thank you.

#2 Updated by Luis Lavena almost 5 years ago

  • Assignee set to Luis Lavena



#3 Updated by Luis Lavena almost 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r30377.
Rafał, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Also available in: Atom PDF