Author: gadamopoulos Date: Thu Aug 17 16:35:16 2017 New Revision: 75595 URL: http://svn.reactos.org/svn/reactos?rev=75595&view=rev Log: [SHELL32] -AddFSClassKeysToArray: Increase the size of the buffer for the value read from the registry. There are cases when 40 are not enough.
Modified: trunk/reactos/dll/win32/shell32/shlfolder.cpp Modified: trunk/reactos/dll/win32/shell32/shlfolder.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlfolder.cpp?rev=75595&r1=75594&r2=75595&view=diff ============================================================================== --- trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] Thu Aug 17 16:35:16 2017 @@ -288,7 +288,7 @@ { AddClassKeyToArray(extension, array, cKeys); - WCHAR wszClass[40], wszClass2[40]; + WCHAR wszClass[MAX_PATH], wszClass2[MAX_PATH]; DWORD dwSize = sizeof(wszClass); if (RegGetValueW(HKEY_CLASSES_ROOT, extension, NULL, RRF_RT_REG_SZ, NULL, wszClass, &dwSize) == ERROR_SUCCESS) {