Sitelet https://github.com/jruby/jruby/pull/7281
Skip to content

Use the wide versions of these functions always - #7281

Merged
headius merged 1 commit into
jruby:jruby-9.3from
headius:wide_registry_funcs
Aug 3, 2022
Merged

headius merged 1 commit into
jruby:jruby-9.3from
headius:wide_registry_funcs

Conversation

@headius

@headius headius commented Aug 1, 2022

Copy link
Copy Markdown
Member

The two delete functions were modified to be wide in CRuby in
response to https://bugs.ruby-lang.org/issues/10820 seven years
ago. The query function was mentioned here but not updated to be
wide. I am unsure how CRuby is locating the appropriate A or W
function given the bare name, but since we have largely forked
this file and always want to use the wide version, this change
seems appropriate.

Fixes #7106

The two delete functions were modified to be wide in CRuby in
response to https://bugs.ruby-lang.org/issues/10820 seven years
ago. The query function was mentioned here but not updated to be
wide. I am unsure how CRuby is locating the appropriate `A` or `W`
function given the bare name, but since we have largely forked
this file and always want to use the wide version, this change
seems appropriate.

Fixes jruby#7106
@headius

headius commented Aug 3, 2022

Copy link
Copy Markdown
Member Author

I do not have an answer yet as to why the non-W version of RegQueryInfoKey works on CRuby, nor why they did not explicitly bind it to the wide version in registry.rb, but I believe this is the correct change to make.

@headius
headius merged commit dbe4c8c into jruby:jruby-9.3 Aug 3, 2022
@headius
headius deleted the wide_registry_funcs branch August 3, 2022 16:57
@headius headius linked an issue Aug 3, 2022 that may be closed by this pull request
eregon added a commit that referenced this pull request Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fiddle::DLError: cannot find the function: RegQueryInfoKey()

1 participant