1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-28 02:50:33 +03:00

Merge PR #961: Enable crash minidump for Win32 vpntest

This commit is contained in:
Davide Beatrici 2019-08-04 03:51:00 +02:00 committed by GitHub
commit 82b84a9436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
// Determine whether minidump is enabled
bool MsIsMinidumpEnabled()
{
return ms->MiniDumpEnabled;
}
// Determine whether to create a minidump
void MsSetEnableMinidump(bool enabled)
{

View File

@ -886,6 +886,7 @@ bool MsIsWinXPOrWinVista();
bool MsGetFileInformation(void *h, void *info);
void MsSetErrorModeToSilent();
void MsSetEnableMinidump(bool enabled);
bool MsIsMinidumpEnabled();
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");
#ifdef OS_WIN32
MsSetEnableMinidump(false);
MsSetEnableMinidump(true);
#endif // OS_WIN32
while (true)