msctf: Correctly initialize the description field.

Found by Valgrind.
oldstable
Huw Davies 2009-11-12 22:51:10 +00:00 committed by Alexandre Julliard
parent 447e224380
commit d775d6e31f
1 changed files with 1 additions and 0 deletions

View File

@ -883,6 +883,7 @@ static HRESULT WINAPI KeystrokeMgr_PreserveKey(ITfKeystrokeMgr *iface,
newkey->guid = *rguid;
newkey->prekey = *prekey;
newkey->tid = tid;
newkey->description = NULL;
if (cchDesc)
{
newkey->description = HeapAlloc(GetProcessHeap(),0,cchDesc * sizeof(WCHAR));