comctl32: Avoid gcc 11 maybe-uninitialized warning.

dlls/comctl32/monthcal.c:1783:19: warning: ‘htinfo.uHit’ may be used uninitialized [-Wmaybe-uninitialized]

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit ce8f724740)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Andrew Eikum 2021-06-04 15:01:01 -05:00 committed by Michael Stefaniuc
parent b363adda05
commit dd412ae81c
1 changed files with 1 additions and 0 deletions

View File

@ -1799,6 +1799,7 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
if(!lpht || lpht->cbSize < MCHITTESTINFO_V1_SIZE) return -1;
htinfo.st = st_null;
htinfo.uHit = 0;
/* we should preserve passed fields if hit area doesn't need them */
if (lpht->cbSize == sizeof(MCHITTESTINFO))