Commit d775d6e3 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

msctf: Correctly initialize the description field.

Found by Valgrind.
parent 447e2243
...@@ -883,6 +883,7 @@ static HRESULT WINAPI KeystrokeMgr_PreserveKey(ITfKeystrokeMgr *iface, ...@@ -883,6 +883,7 @@ static HRESULT WINAPI KeystrokeMgr_PreserveKey(ITfKeystrokeMgr *iface,
newkey->guid = *rguid; newkey->guid = *rguid;
newkey->prekey = *prekey; newkey->prekey = *prekey;
newkey->tid = tid; newkey->tid = tid;
newkey->description = NULL;
if (cchDesc) if (cchDesc)
{ {
newkey->description = HeapAlloc(GetProcessHeap(),0,cchDesc * sizeof(WCHAR)); newkey->description = HeapAlloc(GetProcessHeap(),0,cchDesc * sizeof(WCHAR));
......
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