For consistency with get_dentry(), only treat WIM_PATH_SEPARATOR
characters as path separators.
{
if (*wildcard == T('\0'))
return WILDCARD_STATUS_DONE_FULLY;
{
if (*wildcard == T('\0'))
return WILDCARD_STATUS_DONE_FULLY;
- while (is_any_path_separator(*wildcard))
+ while (*wildcard == WIM_PATH_SEPARATOR)
wildcard++;
if (*wildcard == T('\0'))
return WILDCARD_STATUS_DONE_TRAILING_SLASHES;
wildcard++;
if (*wildcard == T('\0'))
return WILDCARD_STATUS_DONE_TRAILING_SLASHES;
w = ctx->wildcard_path;
begin = ctx->cur_component_offset + ctx->cur_component_len;
w = ctx->wildcard_path;
begin = ctx->cur_component_offset + ctx->cur_component_len;
- while (is_any_path_separator(w[begin]))
+ while (w[begin] == WIM_PATH_SEPARATOR)
- while (w[end] != T('\0') && !is_any_path_separator(w[end]))
+ while (w[end] != T('\0') && w[end] != WIM_PATH_SEPARATOR)
end++;
len = end - begin;
end++;
len = end - begin;
* wildcard.
* @wildcard_path
* Wildcard path to expand, which may contain the '?' and '*' characters.
* wildcard.
* @wildcard_path
* Wildcard path to expand, which may contain the '?' and '*' characters.
- * Path separators may be either forward slashes, and leading path
- * separators are ignored. Trailing path separators indicate that the
- * wildcard can only match directories.
+ * Path separators must be WIM_PATH_SEPARATOR. Leading path separators are
+ * ignored, whereas one or more trailing path separators indicate that the
+ * wildcard path can only match directories (and not reparse points).
* @consume_dentry
* Callback function which will receive each directory entry matched by the
* wildcard.
* @consume_dentry
* Callback function which will receive each directory entry matched by the
* wildcard.