[SHELL32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 22 Sep 2016 16:14:07 +0000 (16:14 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 22 Sep 2016 16:14:07 +0000 (16:14 +0000)
- COpenWithMenu: Don't try to close the same registry key twice.

svn path=/trunk/; revision=72770

reactos/dll/win32/shell32/COpenWithMenu.cpp

index e2d401c..75d61ad 100644 (file)
@@ -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)
         {