taskmgr: Avoid return type when the return value is not used
André Hentschel
nerv at dawncrow.de
Wed Jan 29 15:25:09 CST 2014
---
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);
--
1.8.1.2
More information about the wine-patches
mailing list