mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-31 08:04:36 +01:00
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user