Skip to content

Commit 9e31d1e

Browse files
Oops, fix wildcard search.
Was skipping the last file.
1 parent cf45543 commit 9e31d1e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cli/winglob.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ void winargs_get_wildcard(const char *arg, std::vector<std::string> &files) {
1717
// It wasn't found. Add the original arg for sane error handling.
1818
files.push_back(arg);
1919
} else {
20-
while (finder.FindNextFile()) {
20+
BOOL hasMore = TRUE;
21+
while (hasMore) {
22+
// Confusingly, FindNextFile returns false on the last file.
23+
hasMore = finder.FindNextFile();
2124
if (finder.IsDots()) {
2225
continue;
2326
}

src/compress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace maxcso {
99

10-
static const char *VERSION = "1.7.0";
10+
static const char *VERSION = "1.7.1";
1111

1212
static const uint32_t DEFAULT_BLOCK_SIZE = 0xFFFFFFFF;
1313

0 commit comments

Comments
 (0)