Skip to content

Commit

Permalink
Oops, fix wildcard search.
Browse files Browse the repository at this point in the history
Was skipping the last file.
  • Loading branch information
unknownbrackets committed Mar 23, 2016
1 parent cf45543 commit 9e31d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cli/winglob.cpp
Expand Up @@ -17,7 +17,10 @@ void winargs_get_wildcard(const char *arg, std::vector<std::string> &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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/compress.h
Expand Up @@ -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;

Expand Down

0 comments on commit 9e31d1e

Please sign in to comment.