View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000672 | Far Manager | Panel.Info | public | 2008-12-19 02:30 | 2008-12-29 05:00 |
Reporter | alexmitin | Assigned To | DrKnS | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86 | OS | Windows | OS Version | XP SP3 |
Fixed in Version | 2.0 | ||||
Summary | 0000672: Invalid values in the Information panel | ||||
Description | The Information panel shows the invalid values for the memory usage. There a two problems in the InfoList::DisplayObject() function: void InfoList::DisplayObject() { ... MEMORYSTATUSEX ms; GlobalMemoryStatusEx(&ms); <==[bug.1]== if (ms.dwMemoryLoad==0) <==[bug.2]== ms.dwMemoryLoad=100-ToPercent64(ms.ullAvailPhys+ms.ullAvailPageFile,ms.ullTotalPhys+ms.ullTotalPageFile); GotoXY(X1+2,Y1+9); PrintText(MInfoMemoryLoad); ... } 1) bug.1: The GlobalMemoryStatusEx function is called without initializing ms.dwLength field. See http://msdn.microsoft.com/en-us/library/aa366770(VS.85).aspx 2) bug.2: The result of the function GlobalMemoryStatusEx is not checked before using the ms. The function may return FALSE in case of failure. See the following link for more information: http://msdn.microsoft.com/en-us/library/aa366589(VS.85).aspx | ||||
Tags | No tags attached. | ||||
Build | 667 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2008-12-19 02:30 | alexmitin | New Issue | |
2008-12-19 07:17 | DrKnS | Status | new => assigned |
2008-12-19 07:17 | DrKnS | Assigned To | => DrKnS |
2008-12-19 07:30 | DrKnS | Note Added: 0002211 | |
2008-12-19 07:30 | DrKnS | Status | assigned => feedback |
2008-12-28 22:41 | alexmitin | Note Added: 0002268 | |
2008-12-28 22:41 | alexmitin | Status | feedback => resolved |
2008-12-28 22:41 | alexmitin | Resolution | open => fixed |
2008-12-29 05:00 | DrKnS | Build | => 667 |
2008-12-29 05:00 | DrKnS | Status | resolved => closed |
2008-12-29 05:00 | DrKnS | Fixed in Version | => 2.0 |