Shed one parameter and one local variable from ProcessPageOnNotify.

Gerald Pfeifer gerald at pfeifer.com
Sat May 1 09:48:48 CDT 2010


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



More information about the wine-patches mailing list