Michael Stefaniuc : comctl32: The return value of notify_with_scroll() is never used.

Alexandre Julliard julliard at winehq.org
Mon Dec 28 09:16:08 CST 2009


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Dec 27 23:50:59 2009 +0100

comctl32: The return value of notify_with_scroll() is never used.

So don't bother returning something from that function.

---

 dlls/comctl32/trackbar.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
index 5abc77f..c924b53 100644
--- a/dlls/comctl32/trackbar.c
+++ b/dlls/comctl32/trackbar.c
@@ -135,18 +135,15 @@ static inline int notify (const TRACKBAR_INFO *infoPtr, INT code)
     return notify_hdr(infoPtr, code, &nmh);
 }
 
-static BOOL
-notify_with_scroll (const TRACKBAR_INFO *infoPtr, UINT code)
+static void notify_with_scroll (const TRACKBAR_INFO *infoPtr, UINT code)
 {
-    BOOL bVert = infoPtr->dwStyle & TBS_VERT;
+    UINT scroll = infoPtr->dwStyle & TBS_VERT ? WM_VSCROLL : WM_HSCROLL;
 
     TRACE("%x\n", code);
 
-    return (BOOL) SendMessageW (infoPtr->hwndNotify,
-                                bVert ? WM_VSCROLL : WM_HSCROLL,
-				(WPARAM)code, (LPARAM)infoPtr->hwndSelf);
+    SendMessageW (infoPtr->hwndNotify, scroll, code, (LPARAM)infoPtr->hwndSelf);
 }
-    
+
 static void TRACKBAR_RecalculateTics (TRACKBAR_INFO *infoPtr)
 {
     int tic;




More information about the wine-cvs mailing list