taskmgr: Fix messed up indentation of an if statement (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Tue Oct 28 17:32:43 CDT 2014


---
 programs/taskmgr/graph.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c
index 859624e..4098675 100644
--- a/programs/taskmgr/graph.c
+++ b/programs/taskmgr/graph.c
@@ -265,8 +265,8 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
      * So first find out how many bars we can fit
      */
     nBars = ((rcClient.bottom - rcClient.top) - 25) / 3;
-        if (CommitChargeLimit)
-    nBarsUsed = (nBars * (int)((CommitChargeTotal * 100) / CommitChargeLimit)) / 100;
+    if (CommitChargeLimit)
+        nBarsUsed = (nBars * (int)((CommitChargeTotal * 100) / CommitChargeLimit)) / 100;
     nBarsFree = nBars - nBarsUsed;
 
     if (nBarsUsed < 0)     nBarsUsed = 0;
-- 
1.8.3.1



More information about the wine-patches mailing list