comctl32: Remove dead assignment in tooltips.c (Cppcheck)

Bruno Jesus 00cpxxx at
Thu Oct 30 21:17:34 CDT 2014

[dlls\comctl32\tooltips.c:237] -> [dlls\comctl32\tooltips.c:243]:
(performance) Variable 'result' is reassigned a value before the old
one has been used.
-------------- next part --------------
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;
     lpnmttcd->nmcd.dwDrawStage = dwDrawStage;
     TRACE("Notifying stage %d, flags %x, id %x\n", lpnmttcd->nmcd.dwDrawStage,

More information about the wine-patches mailing list