shlwapi: Add room for null terminator in local SHGetShellKey buffer.

This commit is contained in:
David Hedberg 2010-10-27 03:13:11 +02:00 committed by Alexandre Julliard
parent 9a3bfce9c0
commit 8a4c60335e
1 changed files with 1 additions and 1 deletions

View File

@ -4514,7 +4514,7 @@ HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create)
else
size_user = 0;
path = HeapAlloc(GetProcessHeap(), 0, size_key+size_subkey+size_user);
path = HeapAlloc(GetProcessHeap(), 0, size_key+size_subkey+size_user+sizeof(WCHAR));
if(!path) {
ERR("Out of memory\n");
return NULL;