mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 16:50:57 +00:00
Fixed several warnings by #includeing ctype.h, and marking several very long integral constants with the LL suffix
svn path=/trunk/; revision=2540
This commit is contained in:
parent
57bf0a56e5
commit
e5d54247ac
1 changed files with 5 additions and 4 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "perfdata.h"
|
||||
#include "column.h"
|
||||
#include "proclist.h"
|
||||
#include <ctype.h>
|
||||
|
||||
HWND hProcessPage; // Process List Property Page
|
||||
|
||||
|
@ -197,9 +198,9 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
time = PerfDataGetCPUTime(Index);
|
||||
|
||||
DWORD dwHours = (DWORD)(time.QuadPart / 36000000000);
|
||||
DWORD dwMinutes = (DWORD)((time.QuadPart % 36000000000) / 600000000);
|
||||
DWORD dwSeconds = (DWORD)(((time.QuadPart % 36000000000) % 600000000) / 10000000);
|
||||
DWORD dwHours = (DWORD)(time.QuadPart / 36000000000LL);
|
||||
DWORD dwMinutes = (DWORD)((time.QuadPart % 36000000000LL) / 600000000LL);
|
||||
DWORD dwSeconds = (DWORD)(((time.QuadPart % 36000000000LL) % 600000000LL) / 10000000LL);
|
||||
|
||||
wsprintf(pnmdi->item.pszText, _T("%d:%02d:%02d"), dwHours, dwMinutes, dwSeconds);
|
||||
}
|
||||
|
@ -452,7 +453,7 @@ void ProcessPageShowContextMenu(DWORD dwProcessId)
|
|||
if (RegQueryValueEx(hKey, "Debugger", NULL, NULL, (LPBYTE)strDebugger, &dwDebuggerSize) == ERROR_SUCCESS)
|
||||
{
|
||||
for (Idx=0; Idx<strlen(strDebugger); Idx++)
|
||||
strDebugger[Idx] = (char) toupper(strDebugger[Idx]);
|
||||
strDebugger[Idx] = toupper(strDebugger[Idx]);
|
||||
|
||||
if (strstr(strDebugger, "DRWTSN32"))
|
||||
EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED);
|
||||
|
|
Loading…
Reference in a new issue