From ebe8b2292a783fb87ccecb53242139af5ca80b2a Mon Sep 17 00:00:00 2001 From: Dimi Paun Date: Mon, 18 Jul 2005 09:10:31 +0000 Subject: [PATCH] Silence uninitialized warnings. --- dlls/comctl32/listview.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 92e53a20fa8..9025a2dca70 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -1972,6 +1972,7 @@ static void LISTVIEW_GetItemMetrics(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVI if (lprcState) *lprcState = State; TRACE(" - state=%s\n", debugrect(&State)); } + else State.right = 0; /************************************************************/ /* compute ICON bounding box (ala LVM_GETITEMRECT) */ @@ -1994,7 +1995,7 @@ static void LISTVIEW_GetItemMetrics(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVI } else /* LVS_SMALLICON, LVS_LIST or LVS_REPORT */ { - Icon.left = State.right; + Icon.left = State.right; Icon.top = Box.top; Icon.right = Icon.left; if (infoPtr->himlSmall && @@ -2006,6 +2007,7 @@ static void LISTVIEW_GetItemMetrics(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVI if(lprcIcon) *lprcIcon = Icon; TRACE(" - icon=%s\n", debugrect(&Icon)); } + else Icon.right = 0; /************************************************************/ /* compute LABEL bounding box (ala LVM_GETITEMRECT) */ @@ -4816,6 +4818,7 @@ static INT LISTVIEW_FindItemW(LISTVIEW_INFO *infoPtr, INT nStart, } bNearest = TRUE; } + else Destination.x = Destination.y = 0; /* if LVFI_PARAM is specified, all other flags are ignored */ if (lpFindInfo->flags & LVFI_PARAM)