[PATCH] comctl32: initialize hittestinfo.uHit (Coverity)
Marcus Meissner
meissner at suse.de
Tue Jan 8 19:42:11 CST 2013
Hi,
CID 701380
If we do not hit anything, uHit would be uninitialized.
set it to MCHT_NOWHERE.
Ciao, MArcus
---
dlls/comctl32/monthcal.c | 1 +
1 Datei geändert, 1 Zeile hinzugefügt(+)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index ef2ad68..1af6cc5 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1753,6 +1753,7 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
if(!lpht || lpht->cbSize < MCHITTESTINFO_V1_SIZE) return -1;
+ htinfo.uHit = MCHT_NOWHERE;
htinfo.st = st_null;
/* we should preserve passed fields if hit area doesn't need them */
--
1.7.10.4
More information about the wine-patches
mailing list