(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings

This commit is contained in:
glx
2008-05-08 13:20:54 +00:00
parent f7b6a02b1e
commit e48a351f8e
11 changed files with 64 additions and 65 deletions

View File

@@ -206,16 +206,15 @@ static char *PrintModuleList(char *output)
HMODULE modules[100];
DWORD needed;
BOOL res;
int count, i;
HANDLE proc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, GetCurrentProcessId());
if (proc != NULL) {
res = EnumProcessModules(proc, modules, sizeof(modules), &needed);
CloseHandle(proc);
if (res) {
count = min(needed / sizeof(HMODULE), lengthof(modules));
size_t count = min(needed / sizeof(HMODULE), lengthof(modules));
for (i = 0; i != count; i++) output = PrintModuleInfo(output, modules[i]);
for (size_t i = 0; i != count; i++) output = PrintModuleInfo(output, modules[i]);
return output;
}
}