Fixup a potential division by zero (that happens anyway in my tests).

svn path=/trunk/; revision=65467
This commit is contained in:
Hermès Bélusca-Maïto 2014-11-23 19:16:41 +00:00
parent 734795e23e
commit 2fb9a4573b

View file

@ -374,7 +374,7 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
sizeof(szChargeLimitFormat));
wsprintfW(Text, szMemUsage, szChargeTotalFormat, szChargeLimitFormat,
(UINT)((CommitChargeTotal * 100) / CommitChargeLimit));
(CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0));
SendMessageW(hStatusWnd, SB_SETTEXT, 2, (LPARAM)Text);