summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-10 11:40:31 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-10 11:40:31 +0000
commitf0e1f9842d62d36c2102fd1069ba6ccadaf485dd (patch)
treefdc95dc52e2d5955a8cff7e008f63b03e7d27fc8 /win32.c
parente3d94c6e129eca08e42e5a1e6fad8c8d4c86950a (diff)
downloadopenttd-f0e1f9842d62d36c2102fd1069ba6ccadaf485dd.tar.xz
(svn r7467) -Cleanup: [win32] Disable the submit-savegame-on-crash code as we (webserver)
doesn't do anything with it and the button has been disabled for ages.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index 569537537..6eb07dab7 100644
--- a/win32.c
+++ b/win32.c
@@ -223,6 +223,9 @@ static bool EmergencySave(void)
return true;
}
+/* Disable the crash-save submit code as it's not used */
+#if 0
+
typedef struct {
HINTERNET (WINAPI *InternetOpen)(LPCTSTR,DWORD, LPCTSTR, LPCTSTR, DWORD);
HINTERNET (WINAPI *InternetConnect)(HINTERNET, LPCTSTR, INTERNET_PORT, LPCTSTR, LPCTSTR, DWORD, DWORD, DWORD);
@@ -321,6 +324,8 @@ error1:
CloseHandle(h);
}
+#endif /* Disabled crash-submit procedures */
+
static const TCHAR * const _expand_texts[] = {_T("S&how report >>"), _T("&Hide report <<") };
static void SetWndSize(HWND wnd, int mode)
@@ -381,6 +386,8 @@ static INT_PTR CALLBACK CrashDialogFunc(HWND wnd,UINT msg,WPARAM wParam,LPARAM l
MessageBox(wnd, _T("Save failed"), _T("Save failed"), MB_ICONINFORMATION);
}
break;
+/* Disable the crash-save submit code as it's not used */
+#if 0
case 14: { /* Submit crash report */
const TCHAR *s;
@@ -405,6 +412,7 @@ static INT_PTR CALLBACK CrashDialogFunc(HWND wnd,UINT msg,WPARAM wParam,LPARAM l
SetCursor(LoadCursor(NULL, IDC_ARROW));
MessageBox(wnd, _T("Crash report submitted. Thank you."), _T("Crash Report"), MB_ICONINFORMATION);
} break;
+#endif /* Disabled crash-submit procedures */
case 15: /* Expand window to show crash-message */
_expanded ^= 1;
SetWndSize(wnd, _expanded);