Commit ce8f7247 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 08306780
......@@ -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))
......
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