1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Enables crash minidump for Win32 vpntest. Minidump files will be saved to the 'C:\Users\<username>\AppData\Local\Temp\vpn_debug' (for normal user) or 'src\bin\vpn_debug\' (for administrator user).

This commit is contained in:
Daiyuu Nobori 2019-08-04 10:26:41 +09:00
parent 831c907512
commit c6068d23c7
3 changed files with 8 additions and 1 deletions

View File

@ -12338,6 +12338,12 @@ bool MsGetMsiInstalledDir(char *component_code, wchar_t *dir, UINT dir_size)
return ret; return ret;
} }
// Determine whether minidump is enabled
bool MsIsMinidumpEnabled()
{
return ms->MiniDumpEnabled;
}
// Determine whether to create a minidump // Determine whether to create a minidump
void MsSetEnableMinidump(bool enabled) void MsSetEnableMinidump(bool enabled)
{ {

View File

@ -886,6 +886,7 @@ bool MsIsWinXPOrWinVista();
bool MsGetFileInformation(void *h, void *info); bool MsGetFileInformation(void *h, void *info);
void MsSetErrorModeToSilent(); void MsSetErrorModeToSilent();
void MsSetEnableMinidump(bool enabled); void MsSetEnableMinidump(bool enabled);
bool MsIsMinidumpEnabled();
void MsWriteMinidump(wchar_t *filename, void *ex); void MsWriteMinidump(wchar_t *filename, void *ex);

View File

@ -116,7 +116,7 @@ int TestMain(char *cmd)
Print(" - In Jurassic Park: \"It's a UNIX system! I know this!\"\n\n"); Print(" - In Jurassic Park: \"It's a UNIX system! I know this!\"\n\n");
#ifdef OS_WIN32 #ifdef OS_WIN32
MsSetEnableMinidump(false); MsSetEnableMinidump(true);
#endif // OS_WIN32 #endif // OS_WIN32
while (true) while (true)