mapi32: Fix a heap buffer overflow.

oldstable
Alexandre Julliard 2009-12-17 14:12:30 +01:00
parent 60ca760edd
commit 4e7389e44b
1 changed files with 1 additions and 1 deletions

View File

@ -1037,7 +1037,7 @@ void load_mapi_providers(void)
TRACE("appName: %s\n", debugstr_w(appName));
appKey = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(regkey_mail) +
lstrlenW(regkey_backslash) + lstrlenW(appName)));
lstrlenW(regkey_backslash) + lstrlenW(appName) + 1));
if (!appKey)
goto cleanUp;