msctf: Correctly initialize the description field.
Found by Valgrind.
This commit is contained in:
parent
447e224380
commit
d775d6e31f
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user