From 27497de356080098c6a7a34090cc20c9bb59e974 Mon Sep 17 00:00:00 2001 From: Dalton Messmer Date: Wed, 19 Feb 2025 23:44:47 -0500 Subject: [PATCH] Use Win32 `A` functions explicitly No functional changes here, but allows building veal regardless of whether the UNICODE macro is set --- src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index a7d4ccb4b..5f231c49e 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -172,8 +172,8 @@ file_exception::file_exception(const std::string &f, const std::string &t) vector list_directory(const string &path) { std::vector out; - WIN32_FIND_DATA data; - HANDLE hFind = FindFirstFile((path+"\\").c_str(), &data); // DIRECTORY + WIN32_FIND_DATAA data; + HANDLE hFind = FindFirstFileA((path+"\\").c_str(), &data); // DIRECTORY if (hFind != INVALID_HANDLE_VALUE) { do @@ -183,7 +183,7 @@ vector list_directory(const string &path) f.full_path = path + "\\" + data.cFileName; f.name = data.cFileName; out.push_back(f); - } while (FindNextFile(hFind, &data) != 0); + } while (FindNextFileA(hFind, &data) != 0); } FindClose(hFind); return out;