From fcc6b97f88f636ce8bae62af992bd208337a431a Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 15 Sep 2019 21:01:15 +0300 Subject: [PATCH] Update utils.cpp --- tests/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.cpp b/tests/utils.cpp index a71e2fb2..593c4c91 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -72,7 +72,7 @@ bool ends_with(std::string const &value, std::string const &ending) } #ifdef _WIN32 -// source: https://stackoverflow.com/a/37416569/192001 +// Based on: https://stackoverflow.com/a/37416569/192001 std::size_t count_files(const std::string &folder) { size_t counter = 0; @@ -80,7 +80,7 @@ std::size_t count_files(const std::string &folder) HANDLE hFind = INVALID_HANDLE_VALUE; // Start iterating over the files in the path directory. - hFind = ::FindFirstFileA((folder + "\\*.*").c_str(), &ffd); + hFind = ::FindFirstFileA((folder + "\\*").c_str(), &ffd); if (hFind != INVALID_HANDLE_VALUE) { do // Managed to locate and create an handle to that folder.