Fix registry name enumeration (dotnet/coreclr#10711)
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>
Wed, 5 Apr 2017 17:51:25 +0000 (10:51 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 17:51:25 +0000 (10:51 -0700)
commit0008ba8dc3f4710360782c6f49bbccb97aa43645
tree7fe77d3556c4d1fa533f3ef1dcf627f5370ab28c
parent9a9d119bb3c82b16f7575ac9f6e503b6e5bce155
Fix registry name enumeration (dotnet/coreclr#10711)

1. Values can be removed after we've gotten the count
2. Allocations for names were  over 32K * enum call + 32K.

Commit migrated from https://github.com/dotnet/coreclr/commit/63645d6fd105557d6ed9073ffb75a607bcdb3b00
src/coreclr/src/mscorlib/shared/Interop/Windows/Interop.Errors.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/RegistryKey.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/Win32Native.cs