Fix registry name enumeration (#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)
commit63645d6fd105557d6ed9073ffb75a607bcdb3b00
tree8a52fc9a5705dc33e1855985b3a2ff1656bb419a
parentbe8504bd8a63962c84567990f0b84019f299166c
Fix registry name enumeration (#10711)

1. Values can be removed after we've gotten the count
2. Allocations for names were  over 32K * enum call + 32K.
src/mscorlib/shared/Interop/Windows/Interop.Errors.cs
src/mscorlib/src/Microsoft/Win32/RegistryKey.cs
src/mscorlib/src/Microsoft/Win32/Win32Native.cs