Improved error control in registry value enumeration.