Gerald Pfeifer : taskmgr: Shed one parameter and one local variable from ProcessPageOnNotify.

Alexandre Julliard julliard at winehq.org
Mon May 3 11:54:08 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat May  1 16:48:48 2010 +0200

taskmgr: Shed one parameter and one local variable from ProcessPageOnNotify.

---

 programs/taskmgr/procpage.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/programs/taskmgr/procpage.c b/programs/taskmgr/procpage.c
index 4575605..7f91114 100644
--- a/programs/taskmgr/procpage.c
+++ b/programs/taskmgr/procpage.c
@@ -148,9 +148,8 @@ static void ProcessPageShowContextMenu(DWORD dwProcessId)
     DestroyMenu(hMenu);
 }
 
-static void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
+static void ProcessPageOnNotify(LPARAM lParam)
 {
-    int                idctrl;
     LPNMHDR            pnmh;
     LPNMLISTVIEW       pnmv;
     NMLVDISPINFOW*     pnmdi;
@@ -163,7 +162,6 @@ static void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
     static const WCHAR wszFmt02D[] = {'%','0','2','d',0};
     static const WCHAR wszUnitK[] = {' ','K',0};
 
-    idctrl = (int) wParam;
     pnmh = (LPNMHDR) lParam;
     pnmv = (LPNMLISTVIEW) lParam;
     pnmdi = (NMLVDISPINFOW*) lParam;
@@ -542,8 +540,7 @@ ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
         break;
 
     case WM_NOTIFY:
-
-        ProcessPageOnNotify(wParam, lParam);
+        ProcessPageOnNotify(lParam);
         break;
     }
 




More information about the wine-cvs mailing list