diff --git a/src/app/stacktrace_win.h b/src/app/stacktrace_win.h index 86bab11ce..7c92fba1e 100644 --- a/src/app/stacktrace_win.h +++ b/src/app/stacktrace_win.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #ifdef __MINGW32__ @@ -256,7 +257,7 @@ const QString straceWin::getBacktrace() HANDLE hProcess = GetCurrentProcess(); HANDLE hThread = GetCurrentThread(); - SymInitialize(hProcess, NULL, TRUE); + SymInitializeW(hProcess, QCoreApplication::applicationDirPath().toStdWString().c_str(), TRUE); DWORD64 dwDisplacement;