Silence some warnings when compiling taskmgr with MSVC2005

svn path=/trunk/; revision=30306
This commit is contained in:
Colin Finck 2007-11-09 19:46:01 +00:00
parent 1a98aabcd1
commit 0d730a1f45
5 changed files with 15 additions and 12 deletions

View file

@ -105,7 +105,7 @@ int InsertColumn(int nCol, LPCWSTR lpszColumnHeading, int nFormat, int nWidth, i
void SaveColumnSettings(void) void SaveColumnSettings(void)
{ {
HDITEM hditem; HDITEM hditem;
unsigned int i, n; int i, n;
WCHAR text[260]; WCHAR text[260];
LRESULT size; LRESULT size;

View file

@ -237,7 +237,7 @@ static int enum_channel(HANDLE hProcess, EnumChannelCB ce, void* user, unsigned
void* buf_addr; void* buf_addr;
WCHAR buffer[32]; WCHAR buffer[32];
void* addr; void* addr;
const WCHAR** cache = NULL; WCHAR** cache = NULL;
unsigned i, j, num_cache, used_cache; unsigned i, j, num_cache, used_cache;
addr = get_symbol(hProcess, "first_dll", "libwine.so"); addr = get_symbol(hProcess, "first_dll", "libwine.so");

View file

@ -386,7 +386,8 @@ BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, int nMaxCount)
int PerfGetIndexByProcessId(DWORD dwProcessId) int PerfGetIndexByProcessId(DWORD dwProcessId)
{ {
int Index, FoundIndex = -1; int FoundIndex = -1;
ULONG Index;
EnterCriticalSection(&PerfDataCriticalSection); EnterCriticalSection(&PerfDataCriticalSection);

View file

@ -441,8 +441,8 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
/* /*
* Get the memory usage * Get the memory usage
*/ */
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK(); CommitChargeTotal = PerfDataGetCommitChargeTotalK();
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK(); CommitChargeLimit = PerfDataGetCommitChargeLimitK();
nBarsUsed1 = CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0; nBarsUsed1 = CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0;
PhysicalMemoryTotal = PerfDataGetPhysicalMemoryTotalK(); PhysicalMemoryTotal = PerfDataGetPhysicalMemoryTotalK();

View file

@ -5,17 +5,18 @@
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled! #error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
#endif #endif
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include <windows.h> #include <windows.h>
#define NTOS_MODE_USER #define NTOS_MODE_USER
#include <ndk/ntndk.h> #include <ndk/ntndk.h>
#include <aclapi.h>
#include <commctrl.h> #include <commctrl.h>
#include <shellapi.h> #include <shellapi.h>
#include <aclapi.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include "column.h" #include "column.h"
#include "taskmgr.h" #include "taskmgr.h"
@ -35,4 +36,5 @@
#include "priority.h" #include "priority.h"
#include "run.h" #include "run.h"
#include "trayicon.h" #include "trayicon.h"
#endif /* __PRECOMP_H */ #endif /* __PRECOMP_H */