From ac1bfd4b8adcdf2002bec4bd6af4064daee785c7 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 17 Sep 2024 15:28:38 +0200 Subject: Explicitly tell dbghelp.dll to look for PDBs alongside Zen's binaries --- src/zencore/callstack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/zencore/callstack.cpp') 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 +#include #include #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; } -- cgit v1.2.3