diff --git a/cli/winglob.cpp b/cli/winglob.cpp index 1327e49ed..80484658b 100644 --- a/cli/winglob.cpp +++ b/cli/winglob.cpp @@ -17,7 +17,10 @@ void winargs_get_wildcard(const char *arg, std::vector &files) { // It wasn't found. Add the original arg for sane error handling. files.push_back(arg); } else { - while (finder.FindNextFile()) { + BOOL hasMore = TRUE; + while (hasMore) { + // Confusingly, FindNextFile returns false on the last file. + hasMore = finder.FindNextFile(); if (finder.IsDots()) { continue; } diff --git a/src/compress.h b/src/compress.h index ed5e73beb..60dd509e6 100644 --- a/src/compress.h +++ b/src/compress.h @@ -7,7 +7,7 @@ namespace maxcso { -static const char *VERSION = "1.7.0"; +static const char *VERSION = "1.7.1"; static const uint32_t DEFAULT_BLOCK_SIZE = 0xFFFFFFFF;