summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-08 13:20:54 +0000
committerglx <glx@openttd.org>2008-05-08 13:20:54 +0000
commita28ea3865385e519026224076b8dc479e13010a0 (patch)
tree8d4f7ac36d25e220f571af8ff584b7fa76c13cc1 /src/win32.cpp
parent298ce6233860bce8767907721e454bbaa041a061 (diff)
downloadopenttd-a28ea3865385e519026224076b8dc479e13010a0.tar.xz
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
Diffstat (limited to 'src/win32.cpp')
-rw-r--r--src/win32.cpp5
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;
}
}