Author: gadamopoulos Date: Thu Sep 22 16:14:07 2016 New Revision: 72770 URL: http://svn.reactos.org/svn/reactos?rev=72770&view=rev Log: [SHELL32] - COpenWithMenu: Don't try to close the same registry key twice.
Modified: trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp Modified: trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp?rev=72770&r1=72769&r2=72770&view=diff ============================================================================== --- trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp [iso-8859-1] Thu Sep 22 16:14:07 2016 @@ -600,8 +600,6 @@ 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) {