From: Bruno Jesus <00cpxxx@gmail.com> Subject: comctl32: Remove dead assignment in tooltips.c (Cppcheck) Message-Id: Date: Fri, 31 Oct 2014 00:17:34 -0200 [dlls\comctl32\tooltips.c:237] -> [dlls\comctl32\tooltips.c:243]: (performance) Variable 'result' is reassigned a value before the old one has been used. diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index f74ea65..7564c3f 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -234,7 +234,7 @@ TOOLTIPS_customdraw_fill(const TOOLTIPS_INFO *infoPtr, NMTTCUSTOMDRAW *lpnmttcd, static inline DWORD TOOLTIPS_notify_customdraw (DWORD dwDrawStage, NMTTCUSTOMDRAW *lpnmttcd) { - LRESULT result = CDRF_DODEFAULT; + LRESULT result; lpnmttcd->nmcd.dwDrawStage = dwDrawStage; TRACE("Notifying stage %d, flags %x, id %x\n", lpnmttcd->nmcd.dwDrawStage,