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:
parent
831c907512
commit
c6068d23c7
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user