mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #961: Enable crash minidump for Win32 vpntest
This commit is contained in:
commit
82b84a9436
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user