RegEnumValueA bugs and patch in dlls/advapi32/registry.c