Fix a couple of MSVC signed/unsigned warnings.

This commit is contained in:
Francois Gouget 2005-08-17 09:53:39 +00:00 committed by Alexandre Julliard
parent 0b5cc286e3
commit 03ede20086
1 changed files with 4 additions and 4 deletions

View File

@ -216,7 +216,7 @@ static void test_query_process(void)
DWORD status; DWORD status;
DWORD last_pid; DWORD last_pid;
ULONG ReturnLength; ULONG ReturnLength;
int i = 0, j = 0, k = 0; int i = 0, k = 0;
int is_nt = 0; int is_nt = 0;
SYSTEM_BASIC_INFORMATION sbi; SYSTEM_BASIC_INFORMATION sbi;
@ -297,6 +297,7 @@ static void test_query_process(void)
if (!is_nt) if (!is_nt)
{ {
DWORD j;
for ( j = 0; j < spi->dwThreadCount; j++) for ( j = 0; j < spi->dwThreadCount; j++)
{ {
k++; k++;
@ -362,8 +363,7 @@ static void test_query_module(void)
{ {
DWORD status; DWORD status;
ULONG ReturnLength; ULONG ReturnLength;
DWORD ModuleCount; ULONG ModuleCount, i;
int i;
ULONG SystemInformationLength = sizeof(SYSTEM_MODULE_INFORMATION); ULONG SystemInformationLength = sizeof(SYSTEM_MODULE_INFORMATION);
SYSTEM_MODULE_INFORMATION* smi = HeapAlloc(GetProcessHeap(), 0, SystemInformationLength); SYSTEM_MODULE_INFORMATION* smi = HeapAlloc(GetProcessHeap(), 0, SystemInformationLength);
@ -389,7 +389,7 @@ static void test_query_module(void)
/* Loop through all the modules/drivers, Wine doesn't get here (yet) */ /* Loop through all the modules/drivers, Wine doesn't get here (yet) */
for (i = 0; i < ModuleCount ; i++) for (i = 0; i < ModuleCount ; i++)
{ {
ok( i == sm->Id, "Id (%d) should have matched %d\n", sm->Id, i); ok( i == sm->Id, "Id (%d) should have matched %lu\n", sm->Id, i);
sm++; sm++;
} }