Commit 8a4c6033 authored by David Hedberg's avatar David Hedberg Committed by Alexandre Julliard

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

parent 9a3bfce9
...@@ -4514,7 +4514,7 @@ HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create) ...@@ -4514,7 +4514,7 @@ HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create)
else else
size_user = 0; 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) { if(!path) {
ERR("Out of memory\n"); ERR("Out of memory\n");
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment