aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/callstack.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2024-09-17 15:28:38 +0200
committerMartin Ridgers <[email protected]>2024-09-17 15:31:35 +0200
commitac1bfd4b8adcdf2002bec4bd6af4064daee785c7 (patch)
tree9d31ded29dd574ceb01307c69567d10ffd1468b7 /src/zencore/callstack.cpp
parentgc performance improvements (#160) (diff)
downloadzen-ac1bfd4b8adcdf2002bec4bd6af4064daee785c7.tar.xz
zen-ac1bfd4b8adcdf2002bec4bd6af4064daee785c7.zip
Explicitly tell dbghelp.dll to look for PDBs alongside Zen's binaries
Diffstat (limited to 'src/zencore/callstack.cpp')
-rw-r--r--src/zencore/callstack.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zencore/callstack.cpp b/src/zencore/callstack.cpp
index d16605fb9..8c37286be 100644
--- a/src/zencore/callstack.cpp
+++ b/src/zencore/callstack.cpp
@@ -1,6 +1,7 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include <zencore/callstack.h>
+#include <zencore/filesystem.h>
#include <zencore/thread.h>
#if ZEN_PLATFORM_WINDOWS
@@ -42,7 +43,8 @@ public:
if (!m_Initialized)
{
m_CurrentProcess = GetCurrentProcess();
- if (SymInitialize(m_CurrentProcess, NULL, TRUE) == TRUE)
+ std::filesystem::path ProgramBaseDir = GetRunningExecutablePath().parent_path();
+ if (SymInitializeW(m_CurrentProcess, ProgramBaseDir.c_str(), TRUE) == TRUE)
{
m_Initialized = true;
}