summaryrefslogtreecommitdiff
path: root/src/os/windows
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-09 12:41:51 +0000
committerrubidium <rubidium@openttd.org>2009-09-09 12:41:51 +0000
commita8070263366171208f93f9e0613ddb3e717cbf3d (patch)
tree44049f78bdcf4dc6e482b7b1e66b24e848952bba /src/os/windows
parentf3f6eaa6dc715531cbf92ff84e175e5add3a4688 (diff)
downloadopenttd-a8070263366171208f93f9e0613ddb3e717cbf3d.tar.xz
(svn r17487) -Fix: silence some MSVC warnings
Diffstat (limited to 'src/os/windows')
-rw-r--r--src/os/windows/crashlog_win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp
index a54665cb9..11acad0ab 100644
--- a/src/os/windows/crashlog_win.cpp
+++ b/src/os/windows/crashlog_win.cpp
@@ -481,7 +481,7 @@ static INT_PTR CALLBACK CrashDialogFunc(HWND wnd, UINT msg, WPARAM wParam, LPARA
*p = '\0';
/* Add path to crash.log and crash.dmp (if any) to the crash window text */
- int len = _tcslen(_crash_desc) + _tcslen(OTTD2FS(CrashLogWindows::current->crashlog_filename)) + _tcslen(OTTD2FS(CrashLogWindows::current->crashdump_filename)) + 4;
+ size_t len = _tcslen(_crash_desc) + _tcslen(OTTD2FS(CrashLogWindows::current->crashlog_filename)) + _tcslen(OTTD2FS(CrashLogWindows::current->crashdump_filename)) + 4;
TCHAR *text = AllocaM(TCHAR, len);
TCHAR *dump = _tcsdup(OTTD2FS(CrashLogWindows::current->crashdump_filename));
_sntprintf(text, len, _crash_desc, OTTD2FS(CrashLogWindows::current->crashlog_filename), dump[0] != _T('\0') ? _T("'\n'") : _T(""), dump);
@@ -500,7 +500,7 @@ static INT_PTR CALLBACK CrashDialogFunc(HWND wnd, UINT msg, WPARAM wParam, LPARA
case 13: // Emergency save
char filename[MAX_PATH];
if (CrashLogWindows::current->WriteSavegame(filename, lastof(filename))) {
- int len = _tcslen(_save_succeeded) + _tcslen(OTTD2FS(filename)) + 1;
+ size_t len = _tcslen(_save_succeeded) + _tcslen(OTTD2FS(filename)) + 1;
TCHAR *text = AllocaM(TCHAR, len);
_sntprintf(text, len, _save_succeeded, OTTD2FS(filename));
MessageBox(wnd, text, _T("Save successful"), MB_ICONINFORMATION);