mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +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 "perfdata.h"
|
||||||
#include "column.h"
|
#include "column.h"
|
||||||
#include "proclist.h"
|
#include "proclist.h"
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
HWND hProcessPage; // Process List Property Page
|
HWND hProcessPage; // Process List Property Page
|
||||||
|
|
||||||
|
@ -197,9 +198,9 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
time = PerfDataGetCPUTime(Index);
|
time = PerfDataGetCPUTime(Index);
|
||||||
|
|
||||||
DWORD dwHours = (DWORD)(time.QuadPart / 36000000000);
|
DWORD dwHours = (DWORD)(time.QuadPart / 36000000000LL);
|
||||||
DWORD dwMinutes = (DWORD)((time.QuadPart % 36000000000) / 600000000);
|
DWORD dwMinutes = (DWORD)((time.QuadPart % 36000000000LL) / 600000000LL);
|
||||||
DWORD dwSeconds = (DWORD)(((time.QuadPart % 36000000000) % 600000000) / 10000000);
|
DWORD dwSeconds = (DWORD)(((time.QuadPart % 36000000000LL) % 600000000LL) / 10000000LL);
|
||||||
|
|
||||||
wsprintf(pnmdi->item.pszText, _T("%d:%02d:%02d"), dwHours, dwMinutes, dwSeconds);
|
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)
|
if (RegQueryValueEx(hKey, "Debugger", NULL, NULL, (LPBYTE)strDebugger, &dwDebuggerSize) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
for (Idx=0; Idx<strlen(strDebugger); Idx++)
|
for (Idx=0; Idx<strlen(strDebugger); Idx++)
|
||||||
strDebugger[Idx] = (char) toupper(strDebugger[Idx]);
|
strDebugger[Idx] = toupper(strDebugger[Idx]);
|
||||||
|
|
||||||
if (strstr(strDebugger, "DRWTSN32"))
|
if (strstr(strDebugger, "DRWTSN32"))
|
||||||
EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED);
|
EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED);
|
||||||
|
|
Loading…
Reference in a new issue