Module: wine Branch: master Commit: 810fbdd222a87022436b6eb8cebee627b9d00248 URL: http://source.winehq.org/git/wine.git/?a=commit;h=810fbdd222a87022436b6eb8ce...
Author: André Hentschel nerv@dawncrow.de Date: Wed Jan 29 22:25:09 2014 +0100
taskmgr: Avoid return type when the return value is not used.
---
programs/taskmgr/graphctl.c | 3 +-- programs/taskmgr/graphctl.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/programs/taskmgr/graphctl.c b/programs/taskmgr/graphctl.c index 25632f8..6e83412 100644 --- a/programs/taskmgr/graphctl.c +++ b/programs/taskmgr/graphctl.c @@ -153,13 +153,12 @@ static void GraphCtrl_Resize(TGraphCtrl* this) this->m_dVerticalFactor = (double)this->m_nPlotHeight / this->m_dRange; }
-BOOL GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd, UINT nID) +void GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd, UINT nID) { GraphCtrl_Init(this); this->m_hParentWnd = hParentWnd; this->m_hWnd = hWnd; GraphCtrl_Resize(this); - return 0; }
static void GraphCtrl_InvalidateCtrl(TGraphCtrl* this) diff --git a/programs/taskmgr/graphctl.h b/programs/taskmgr/graphctl.h index cd7cec4..2adb494 100644 --- a/programs/taskmgr/graphctl.h +++ b/programs/taskmgr/graphctl.h @@ -89,8 +89,7 @@ extern WNDPROC OldGraphCtrlWndProc; double GraphCtrl_AppendPoint(TGraphCtrl* this, double dNewPoint0, double dNewPoint1, double dNewPoint2, double dNewPoint3); -BOOL GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd, -UINT nID); +void GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd, UINT nID); void GraphCtrl_Reset(TGraphCtrl* this); void GraphCtrl_SetBackgroundColor(TGraphCtrl* this, COLORREF color);