mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
Fixup a potential division by zero (that happens anyway in my tests).
svn path=/trunk/; revision=65467
This commit is contained in:
parent
734795e23e
commit
2fb9a4573b
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
sizeof(szChargeLimitFormat));
|
sizeof(szChargeLimitFormat));
|
||||||
|
|
||||||
wsprintfW(Text, szMemUsage, szChargeTotalFormat, szChargeLimitFormat,
|
wsprintfW(Text, szMemUsage, szChargeTotalFormat, szChargeLimitFormat,
|
||||||
(UINT)((CommitChargeTotal * 100) / CommitChargeLimit));
|
(CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0));
|
||||||
|
|
||||||
SendMessageW(hStatusWnd, SB_SETTEXT, 2, (LPARAM)Text);
|
SendMessageW(hStatusWnd, SB_SETTEXT, 2, (LPARAM)Text);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue