mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:55:57 +00:00
Silence some warnings when compiling taskmgr with MSVC2005
svn path=/trunk/; revision=30306
This commit is contained in:
parent
1a98aabcd1
commit
0d730a1f45
5 changed files with 15 additions and 12 deletions
|
@ -105,7 +105,7 @@ int InsertColumn(int nCol, LPCWSTR lpszColumnHeading, int nFormat, int nWidth, i
|
|||
void SaveColumnSettings(void)
|
||||
{
|
||||
HDITEM hditem;
|
||||
unsigned int i, n;
|
||||
int i, n;
|
||||
WCHAR text[260];
|
||||
LRESULT size;
|
||||
|
||||
|
@ -121,7 +121,7 @@ void SaveColumnSettings(void)
|
|||
SendMessageW(hProcessPageHeaderCtrl, HDM_GETORDERARRAY, (WPARAM) size, (LPARAM) &TaskManagerSettings.ColumnOrderArray);
|
||||
|
||||
/* Get visible columns */
|
||||
for (i=0; i<SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); i++) {
|
||||
for (i = 0; i < SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); i++) {
|
||||
memset(&hditem, 0, sizeof(HDITEM));
|
||||
|
||||
hditem.mask = HDI_TEXT|HDI_WIDTH;
|
||||
|
@ -130,7 +130,7 @@ void SaveColumnSettings(void)
|
|||
|
||||
SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEM, i, (LPARAM) &hditem);
|
||||
|
||||
for (n=0; n<COLUMN_NMAX; n++) {
|
||||
for (n = 0; n < COLUMN_NMAX; n++) {
|
||||
LoadStringW(hInst, ColumnPresets[n].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
|
||||
if (_wcsicmp(text, szTemp) == 0)
|
||||
{
|
||||
|
|
|
@ -237,7 +237,7 @@ static int enum_channel(HANDLE hProcess, EnumChannelCB ce, void* user, unsigned
|
|||
void* buf_addr;
|
||||
WCHAR buffer[32];
|
||||
void* addr;
|
||||
const WCHAR** cache = NULL;
|
||||
WCHAR** cache = NULL;
|
||||
unsigned i, j, num_cache, used_cache;
|
||||
|
||||
addr = get_symbol(hProcess, "first_dll", "libwine.so");
|
||||
|
|
|
@ -386,7 +386,8 @@ BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, int nMaxCount)
|
|||
|
||||
int PerfGetIndexByProcessId(DWORD dwProcessId)
|
||||
{
|
||||
int Index, FoundIndex = -1;
|
||||
int FoundIndex = -1;
|
||||
ULONG Index;
|
||||
|
||||
EnterCriticalSection(&PerfDataCriticalSection);
|
||||
|
||||
|
|
|
@ -441,8 +441,8 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
|||
/*
|
||||
* Get the memory usage
|
||||
*/
|
||||
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
|
||||
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
|
||||
CommitChargeTotal = PerfDataGetCommitChargeTotalK();
|
||||
CommitChargeLimit = PerfDataGetCommitChargeLimitK();
|
||||
nBarsUsed1 = CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0;
|
||||
|
||||
PhysicalMemoryTotal = PerfDataGetPhysicalMemoryTotalK();
|
||||
|
|
|
@ -5,17 +5,18 @@
|
|||
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <aclapi.h>
|
||||
#include <commctrl.h>
|
||||
#include <shellapi.h>
|
||||
#include <aclapi.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "column.h"
|
||||
#include "taskmgr.h"
|
||||
|
@ -35,4 +36,5 @@
|
|||
#include "priority.h"
|
||||
#include "run.h"
|
||||
#include "trayicon.h"
|
||||
|
||||
#endif /* __PRECOMP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue