Huw Davies : msctf: Correctly initialize the description field.
Alexandre Julliard
julliard at winehq.org
Fri Nov 13 09:37:06 CST 2009
Module: wine
Branch: master
Commit: d775d6e31fa928efa2c9f8d3dca9736e77d243a2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d775d6e31fa928efa2c9f8d3dca9736e77d243a2
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Nov 12 22:51:10 2009 +0000
msctf: Correctly initialize the description field.
Found by Valgrind.
---
dlls/msctf/threadmgr.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c
index 56f1c36..5f3a90a 100644
--- a/dlls/msctf/threadmgr.c
+++ b/dlls/msctf/threadmgr.c
@@ -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));
More information about the wine-cvs
mailing list