From c99cf2f60c33787089f087489c3f04dd8c5bdac4 Mon Sep 17 00:00:00 2001 From: wootguy Date: Tue, 11 Jul 2017 10:41:10 -0700 Subject: [PATCH] Fix infinite loop with -gend on windows --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index d755c9f..7f51da6 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1047,7 +1047,7 @@ vector getSubdirs( string path ) else { if (FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY && - (FindFileData.cFileName, ".") && + strcasecmp(FindFileData.cFileName, ".") && strcasecmp(FindFileData.cFileName, "..") ) results.push_back(FindFileData.cFileName);