Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Aug 1, 2022

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
Copy link
Member Author

headius commented Aug 3, 2022

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