mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Wrap stacktrace output in GitHub MarkDown code tags.
This commit is contained in:
parent
b00950aa7a
commit
625cebcaad
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,7 @@ const QString straceWin::getBacktrace() {
|
|||
|
||||
QString log;
|
||||
QTextStream logStream(&log);
|
||||
logStream << "```\n";
|
||||
|
||||
HANDLE hProcess = GetCurrentProcess();
|
||||
HANDLE hThread = GetCurrentThread();
|
||||
|
@ -213,6 +214,7 @@ const QString straceWin::getBacktrace() {
|
|||
logStream << "\n\nList of linked Modules:\n";
|
||||
EnumModulesContext modulesContext(hProcess, logStream);
|
||||
SymEnumerateModules64(hProcess, EnumModulesCB, (PVOID)&modulesContext);
|
||||
logStream << "```";
|
||||
return log;
|
||||
}
|
||||
#if defined(_M_IX86) && defined(Q_CC_MSVC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue