Skip to content

Commit

Permalink
Update an assert to handle another error code
Browse files Browse the repository at this point in the history
  • Loading branch information
randomascii committed Jun 19, 2017
1 parent 30c2080 commit e563000
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UIforETW/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ std::vector<std::wstring> GetFileList(const std::wstring& pattern, const bool fu
{
// If there are NO matching files, then FindFirstFileExW returns
// INVALID_HANDLE_VALUE and the last error is ERROR_FILE_NOT_FOUND.
UIETWASSERT(lastError == ERROR_FILE_NOT_FOUND);
// Or, apparently, ERROR_PATH_NOT_FOUND, if the directory itself
// doesn't exist (pathological case that I actually hit).
UIETWASSERT(lastError == ERROR_FILE_NOT_FOUND || lastError == ERROR_PATH_NOT_FOUND);
return result;
}
do
Expand Down

0 comments on commit e563000

Please sign in to comment.