diff options
author | Ladislav <Zezula> | 2013-10-11 22:06:49 +0200 |
---|---|---|
committer | Ladislav <Zezula> | 2013-10-11 22:06:49 +0200 |
commit | 66b71713c2a60e6f6ccc55245b067dad34fd6154 (patch) | |
tree | d71b083233cd46ac5e8a2a3e2d87df92ad397b63 /src/SFileListFile.cpp | |
parent | c59aa13d57bbd0adf6662ef3266a3943c7e5960f (diff) |
+ Release 8.22v8.22
Diffstat (limited to 'src/SFileListFile.cpp')
-rw-r--r-- | src/SFileListFile.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/SFileListFile.cpp b/src/SFileListFile.cpp index 6ad7ed2..224a288 100644 --- a/src/SFileListFile.cpp +++ b/src/SFileListFile.cpp @@ -597,7 +597,7 @@ bool WINAPI SListFileFindNextFile(HANDLE hFind, SFILE_FIND_DATA * lpFindFileData { TListFileCache * pCache = (TListFileCache *)hFind; size_t nLength; - int nError = ERROR_SUCCESS; + int nError = ERROR_INVALID_PARAMETER; // Check for parameters if(pCache != NULL) @@ -614,13 +614,12 @@ bool WINAPI SListFileFindNextFile(HANDLE hFind, SFILE_FIND_DATA * lpFindFileData // If some mask entered, check it if(CheckWildCard(lpFindFileData->cFileName, pCache->szMask)) + { + nError = ERROR_SUCCESS; break; + } } } - else - { - nError = ERROR_INVALID_PARAMETER; - } if(nError != ERROR_SUCCESS) SetLastError(nError); |