Fix an off-by-one bug!

svn path=/trunk/; revision=58329
This commit is contained in:
Eric Kohl
2013-02-17 12:35:47 +00:00
parent 28affe4561
commit 07a2c13e73
+1 -1
View File
@@ -470,7 +470,7 @@ DoLoginTasks(
pProfile->pszProfile = ProfilePath;
lpEnvironment = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
(wcslen(pgContext->Domain)+ 14) * sizeof(WCHAR));
(wcslen(pgContext->Domain)+ 14 + 1) * sizeof(WCHAR));
if (!lpEnvironment)
{
WARN("HeapAlloc() failed\n");