[SHELL32] -AddFSClassKeysToArray: Increase the size of the buffer for the value read from the registry. There are cases when 40 are not enough.

svn path=/trunk/; revision=75595
This commit is contained in:
Giannis Adamopoulos 2017-08-17 16:35:16 +00:00
parent 1eee5db1a5
commit 123a0e6818

View file

@ -288,7 +288,7 @@ void AddFSClassKeysToArray(PCUITEMID_CHILD pidl, HKEY* array, UINT* cKeys)
{
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)
{