diff options
author | glx <glx@openttd.org> | 2008-05-08 13:20:54 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-08 13:20:54 +0000 |
commit | e48a351f8e006b19d9e2c7bf9ef672a1e141d85f (patch) | |
tree | 8d4f7ac36d25e220f571af8ff584b7fa76c13cc1 /src/win32.cpp | |
parent | f7b6a02b1e9850c4cdb281148a1cee78c2a3f2a8 (diff) | |
download | openttd-e48a351f8e006b19d9e2c7bf9ef672a1e141d85f.tar.xz |
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
Diffstat (limited to 'src/win32.cpp')
-rw-r--r-- | src/win32.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/win32.cpp b/src/win32.cpp index 5f3a1388a..e2f010fff 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -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; } } |