Skip to content

Advapi32Util.registryGetValues() returns no results if the key contains an empty REG_BINARY value #116

@ghost

Description

Not much else to say but this a bit serious for what I'm working on at the moment.

How to reproduce:

  1. Open up regedit
  2. Create a registry key and add an empty REG_BINARY value
  3. Add a couple of other values
  4. Then try this:
    System.out.println(Advapi32Util.registryGetValues(WinReg.HKEY_CURRENT_USER, "your_key_here").size());

You will see that it returns 0 entries, even though there are several actually there. If you remove that binary value, registryGetValues() will magically work again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions