That is apparently a wxWidgets bug.
This happens ever since Lieven's registry patch for Windows 98 compatibility was applied. However, Lieven's code seems to be perfectly correct, it first checks whether a key exists, and if it does not, the key is created. At that point, an error that the key cannot be opened is generated, which is outright silly (of course it does not exist, that's why we create it).