Reg: Type of empty default values

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
User avatar
SvA
Posts: 486
Joined: 29 Mar 2006, 02:41
Location: DE

Reg: Type of empty default values

Post by SvA »

I just noted a discrepancy between Salamander's registry plugin and reg.exe/regedit.exe. I don't know if it matters somewhere or whether one or the other is incorrect or the issue is just a convention.

A non-existent default value in a registry key is shown as type NONE in Salamander but as type REG_SZ in regedit and reg.
With option /z reg shows the type as REG_SZ (1) whereas type REG_NONE was shown as REG_NONE (0).

On the other hand, reg shows an empty string as default value as (in German)
(Standard) REG_SZ (1) (Wert nicht festgelegt)
which is clearly wrong since the value is not unset (Wert nicht festgelet = no value set) but set to an empty string. Regedit is correct on this.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Reg: Type of empty default values

Post by Jan Rysavy »

Empty (default) value is just virtual item. It is displayed in listing, but is not returned by Registry enumeration API. The type of such item is not defined and we used REG_NONE instead of MS Regedit REG_SZ.
Post Reply