Author: hbelusca
Date: Sun Nov 23 19:16:41 2014
New Revision: 65467
URL:
http://svn.reactos.org/svn/reactos?rev=65467&view=rev
Log:
Fixup a potential division by zero (that happens anyway in my tests).
Modified:
trunk/reactos/base/applications/taskmgr/perfpage.c
Modified: trunk/reactos/base/applications/taskmgr/perfpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfpage.c [iso-8859-1] Sun Nov 23 19:16:41
2014
@@ -374,7 +374,7 @@
sizeof(szChargeLimitFormat));
wsprintfW(Text, szMemUsage, szChargeTotalFormat, szChargeLimitFormat,
- (UINT)((CommitChargeTotal * 100) / CommitChargeLimit));
+ (CommitChargeLimit ? ((CommitChargeTotal * 100) /
CommitChargeLimit) : 0));
SendMessageW(hStatusWnd, SB_SETTEXT, 2, (LPARAM)Text);