Index: dll/win32/browseui/CAutoComplete.cpp =================================================================== --- dll/win32/browseui/CAutoComplete.cpp (revision 73854) +++ dll/win32/browseui/CAutoComplete.cpp (working copy) @@ -159,7 +159,7 @@ WCHAR *value; HKEY hKey = 0; LONG res; - LONG len; + LONG len = MAX_PATH * 2; /* pwszRegKeyPath contains the key as well as the value, so we split */ key = (WCHAR *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (wcslen(pwzsRegKeyPath) + 1) * sizeof(WCHAR));