comctl32: Remove a stray unused GetFocus() statement (PVS-Studio).

Michael Stefaniuc mstefani at redhat.de
Tue Dec 9 15:11:03 CST 2014


This is the only occurence where the return of GetFocus() isn't used.
It was introduced with the original commit ffa48e04 back in 2002 and
left untouched in the big rewrite of that function in a49b8a5e in 2004.
---
 dlls/comctl32/toolbar.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index a1b7966..a329c26 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -5067,8 +5067,6 @@ TOOLBAR_SetHotItem2 (TOOLBAR_INFO *infoPtr, INT nHotItem, LPARAM lParam)
 
     TOOLBAR_SetHotItemEx(infoPtr, nHotItem, lParam);
 
-    GetFocus();
-
     return (nOldHotItem < 0) ? -1 : (LRESULT)nOldHotItem;
 }
 
-- 
1.8.3.1



More information about the wine-patches mailing list