Opened 6 years ago

Last modified 6 years ago

#26 closed defect

Removing a key from its parent RegContainer value removes a zero char too much — at Version 2

Reported by: Andreas Schnellbacher Owned by: Andreas Schnellbacher
Priority: blocker Milestone: 2.0 beta
Component: NEPMDLIB Version: 1.18
Keywords: Cc:

Description (last modified by Andreas Schnellbacher)

After executing

NepmdDeleteConfigTree \NEPMD\User\AutoRestore

the section RegKey is OK, but in RegContainer, the entry for \NEPMD\User was changed from

AutoRestore.AutoSave.Backup.Colors. ... .Toolbar.

to

AutoSaveBackup.Colors. ... .Toolbar.

(zero chars replaced by single dots).

The faulty function is _removeKeyFromContainerList of libreg.c, which exists for a long time.

The removed RegKeys are:

\NEPMD\User\AutoRestore\Ring\LoadLast
\NEPMD\User\AutoRestore\Ring\MaxFiles
\NEPMD\User\AutoRestore\Ring\SaveLast

The removed RegContainer keys are:

\NEPMD\User\AutoRestore\Ring
\NEPMD\User\AutoRestore

It may have relevance that two container levels were removed.

Luckily, this bug didn't appear until now. It has to be fixed before the deletion of a tree will be added to ImportUserTextConfig, triggered by a DELETE: value in user.cfg.

Change History (2)

comment:1 Changed 6 years ago by Andreas Schnellbacher

Owner: set to Andreas Schnellbacher
Status: newaccepted

comment:2 Changed 6 years ago by Andreas Schnellbacher

Description: modified (diff)
Note: See TracTickets for help on using tickets.