mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fixup a potential division by zero (that happens anyway in my tests).
svn path=/trunk/; revision=65467
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user