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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 29 07:36:58 CDT 2014


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 28 23:32:43 2014 +0100

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

---

 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;




More information about the wine-cvs mailing list