From cf22fc0a008f714c0245a3fe001379b4d0c75ff2 Mon Sep 17 00:00:00 2001 From: WeiN76LQh Date: Fri, 10 Oct 2025 21:18:31 +0100 Subject: [PATCH] Fix issue #7247 See https://github.com/Vector35/binaryninja-api/issues/7247#issuecomment-3392192797 for details. --- view/sharedcache/core/SharedCacheView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/sharedcache/core/SharedCacheView.cpp b/view/sharedcache/core/SharedCacheView.cpp index de53827f38..7c7a2485ef 100644 --- a/view/sharedcache/core/SharedCacheView.cpp +++ b/view/sharedcache/core/SharedCacheView.cpp @@ -855,9 +855,10 @@ bool SharedCacheView::InitController() { // After this we should have all the mappings available as well. auto startTime = std::chrono::high_resolution_clock::now(); - sharedCacheBuilder.AddDirectory(primaryFileDir); if (primaryProjectFile) sharedCacheBuilder.AddProjectFolder(primaryProjectFile->GetFolder()); + else + sharedCacheBuilder.AddDirectory(primaryFileDir); auto totalEntries = sharedCacheBuilder.GetCache().GetEntries().size(); auto endTime = std::chrono::high_resolution_clock::now(); std::chrono::duration elapsed = endTime - startTime;