diff options
| author | WeiN76LQh <WeiN76LQh@github.com> | 2025-10-10 21:18:31 +0100 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-10-14 16:59:04 +0000 |
| commit | 06ee9fe09ee7b23a0102cd231baf89694b767036 (patch) | |
| tree | 474679b1465d72ffb4909647bdd9787cb61a1ac7 /view | |
| parent | 866f24225b49eef51589d379f35d892bd57821af (diff) | |
Fix issue #7247
See https://github.com/Vector35/binaryninja-api/issues/7247#issuecomment-3392192797 for details.
Diffstat (limited to 'view')
| -rw-r--r-- | view/sharedcache/core/SharedCacheView.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCacheView.cpp b/view/sharedcache/core/SharedCacheView.cpp index de53827f..7c7a2485 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<double> elapsed = endTime - startTime; |
