From 9e31d1e6ae0f46cbb66f9978beb907c3ebf016da Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 22 Mar 2016 21:06:33 -0700 Subject: [PATCH] Oops, fix wildcard search. Was skipping the last file. --- cli/winglob.cpp | 5 ++++- src/compress.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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;