Skip to content

Value type incorrectly identified in RegistryPreview #30713

Open
@nx-frost

Description

Microsoft PowerToys version

0.76.2

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Registry Preview

Steps to reproduce

  1. Create the following .reg file:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\_TEST_KEY]
"Test"="hex:ff"
  1. Open the file with RegistryPreview
  2. Select the key _TEST_KEY to view its children
  3. Observe the value in the preview window
    image

✔️ Expected Behavior

The value type is correctly represented as REG_SZ with the value data containing the string hex:ff

Name Type Data
Test REG_SZ hex:ff

❌ Actual Behavior

The value is represented in the preview as REG_BINARY:

Name Type Data
Test REG_BINARY 0xFF

regedit.exe correctly writes the data to the HKEY_CURRENT_USER\_TEST_KEY key:

Name Type Data
Test REG_SZ hex:ff

image

Other Software

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-Registry PreviewRefers to the Registry Preview PowerToy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions