diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-07-09 13:00:55 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:20:56 +0100 |
commit | c7c8e28655d8ef26d561068b49787704bd3cf186 (patch) | |
tree | ec1907c69d3be404633efae5c5660a04825de451 /src/Common/Dlgcode.c | |
parent | 469f1dba407ded806d76e58c9f501a51f20a29df (diff) | |
download | VeraCrypt-c7c8e28655d8ef26d561068b49787704bd3cf186.tar.gz VeraCrypt-c7c8e28655d8ef26d561068b49787704bd3cf186.zip |
Disable crash handling until we put in place a dedicated URL for posting crash information.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index d8ed1bc2..de400e7a 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -1617,7 +1617,7 @@ LRESULT CALLBACK CustomDlgProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPar return DefDlgProc (hwnd, uMsg, wParam, lParam);
}
-
+/*
static BOOL IsReturnAddress (DWORD64 address)
{
static size_t codeEnd = 0;
@@ -1637,7 +1637,7 @@ static BOOL IsReturnAddress (DWORD64 address) || (sp[-6] == 0xff && sp[-5] == 0x15) // call [ADDR]
|| (sp[-2] == 0xff && (sp[-1] & 0xf0) == 0xd0); // call REG
}
-
+*/
typedef struct
{
@@ -1652,24 +1652,24 @@ void ExceptionHandlerThread (void *threadArg) ExceptionHandlerThreadArgs *args = (ExceptionHandlerThreadArgs *) threadArg;
EXCEPTION_POINTERS *ep = args->ExceptionPointers;
- DWORD addr;
+ //DWORD addr;
DWORD exCode = ep->ExceptionRecord->ExceptionCode;
- SYSTEM_INFO si;
+ // SYSTEM_INFO si;
// wchar_t msg[8192];
- char modPath[MAX_PATH];
- int crc = 0;
+ // char modPath[MAX_PATH];
+ // int crc = 0;
// char url[MAX_URL_LENGTH];
- char lpack[128];
- stringstream callStack;
- addr = (DWORD) ep->ExceptionRecord->ExceptionAddress;
- PDWORD sp = (PDWORD) ep->ContextRecord->Esp;
- int frameNumber = 0;
+ // char lpack[128];
+ // stringstream callStack;
+ // addr = (DWORD) ep->ExceptionRecord->ExceptionAddress;
+ // PDWORD sp = (PDWORD) ep->ContextRecord->Esp;
+ // int frameNumber = 0;
switch (exCode)
{
case STATUS_IN_PAGE_ERROR:
case 0xeedfade:
- // Exception not caused by TrueCrypt
+ // Exception not caused by VeraCrypt
MessageBoxW (0, GetString ("EXCEPTION_REPORT_EXT"),
GetString ("EXCEPTION_REPORT_TITLE"),
MB_ICONERROR | MB_OK | MB_SETFOREGROUND | MB_TOPMOST);
@@ -1677,7 +1677,7 @@ void ExceptionHandlerThread (void *threadArg) }
// Call stack
- HMODULE dbgDll = LoadLibrary ("dbghelp.dll");
+/* HMODULE dbgDll = LoadLibrary ("dbghelp.dll");
if (dbgDll)
{
typedef DWORD (__stdcall *SymGetOptions_t) ();
@@ -1815,7 +1815,7 @@ void ExceptionHandlerThread (void *threadArg) else
lpack[0] = 0;
- /*
+
sprintf (url, TC_APPLINK_SECURE "&dest=err-report%s&os=%s&osver=%d.%d.%d&arch=%s&cpus=%d&app=%s&cksum=%x&dlg=%s&err=%x&addr=%x"
, lpack
, GetWindowsEdition().c_str()
|