From 834cb503d4c09a11d12ea8e2fe30b67bab6c5cf9 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 4 Oct 2025 04:30:07 -0500 Subject: [PATCH] Windows recursive search fix --- src/gui/newFilePicker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/newFilePicker.cpp b/src/gui/newFilePicker.cpp index bb4c53ffe..6b1fadc6b 100644 --- a/src/gui/newFilePicker.cpp +++ b/src/gui/newFilePicker.cpp @@ -409,7 +409,7 @@ void FurnaceFilePicker::searchSub(String subPath, int depth) { } if (lower.find(searchQueryW)!=WString::npos) { - FileEntry* newEntry=makeEntry(&entry,NULL); + FileEntry* newEntry=makeEntry(&entry,subPath.c_str()); entryLock.lock(); entries.push_back(newEntry); entryLock.unlock(); @@ -1634,6 +1634,7 @@ bool FurnaceFilePicker::draw(ImGuiWindowFlags winFlags) { #ifdef _WIN32 WString dirCheckPathW=utf8To16(dirCheckPath); isDir=PathIsDirectoryW(dirCheckPathW.c_str()); + int dirError=0; #else // again, silly but works. DIR* checkDir=opendir(dirCheckPath.c_str());