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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 9 15:35:51 CST 2014


Module: wine
Branch: master
Commit: 47fa711bbcff49e28d605eecabff70e229cb5c9e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=47fa711bbcff49e28d605eecabff70e229cb5c9e

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Dec  9 22:11:03 2014 +0100

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

---

 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;
 }
 




More information about the wine-cvs mailing list