When people mimic the display rather than the actual data

Raymond Chen

I recall a bug that we were investigating that was being caused by a registry key being set when it shouldn’t have been. But when you looked at the key in Regedit, it say “(value not set)”. Why were we going down the “value is set” branch? A little spelunking with the debugger revealed the reason directly: Whoever set up that registry key wrote the literal string “(value not set)” to the registry! Thus, the value was set, to the string “(value not set)”! We were flabbergasted. The only explanation we could come up with was that whoever created the registry key didn’t understand that the “(value not set)” was shown by Regedit for a key with no value. Instead, they figured “Oh, I need it to look like that, so I’ll set the value to ‘(value not set)’. Now it looks right in Regedit.” Along similar lines, I’ve been told of a system which appeared to have two (Default) values. As you can probably guess by now, what really happened is that somebody created a value whose name was “(Default)”.

The moral of the story is not to confuse what something is with what something looks like.

0 comments

Discussion is closed.

Feedback usabilla icon