[SHELL32]

- COpenWithMenu: Don't try to close the same registry key twice.

svn path=/trunk/; revision=72770
This commit is contained in:
Giannis Adamopoulos
2016-09-22 16:14:07 +00:00
parent e00840033e
commit c6db4d179c
@@ -600,8 +600,6 @@ VOID COpenWithList::LoadRecommendedFromHKCR(LPCWSTR pwszExt)
dwSize = sizeof(wszBuf);
if (RegGetValueW(hKey, NULL, L"PerceivedType", RRF_RT_REG_SZ, NULL, wszBuf, &dwSize) == ERROR_SUCCESS)
{
RegCloseKey(hKey);
StringCbPrintfW(wszBuf2, sizeof(wszBuf2), L"SystemFileAssociations\\%s", wszBuf);
if (RegOpenKeyExW(HKEY_CLASSES_ROOT, wszBuf2, 0, KEY_READ | KEY_WRITE, &hSubkey) == ERROR_SUCCESS)
{