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 From 99eb6eac3669d813680b7748937764a9378f0d92 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 17 Sep 2024 15:41:00 +0200 Subject: A clang-format pass --- src/zencore/callstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zencore/callstack.cpp') diff --git a/src/zencore/callstack.cpp b/src/zencore/callstack.cpp index 8c37286be..9b06d4575 100644 --- a/src/zencore/callstack.cpp +++ b/src/zencore/callstack.cpp @@ -42,7 +42,7 @@ public: m_CallstackLock.WithExclusiveLock([&]() { if (!m_Initialized) { - m_CurrentProcess = GetCurrentProcess(); + m_CurrentProcess = GetCurrentProcess(); std::filesystem::path ProgramBaseDir = GetRunningExecutablePath().parent_path(); if (SymInitializeW(m_CurrentProcess, ProgramBaseDir.c_str(), TRUE) == TRUE) { -- cgit v1.2.3