Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ac0bee4b
Commit
ac0bee4b
authored
Apr 11, 2006
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Apr 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Ignore leading spaces in PathMatchSpec.
parent
759324a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
path.c
dlls/shlwapi/path.c
+8
-10
path.c
dlls/shlwapi/tests/path.c
+1
-1
No files found.
dlls/shlwapi/path.c
View file @
ac0bee4b
...
...
@@ -1869,18 +1869,17 @@ BOOL WINAPI PathMatchSpecA(LPCSTR lpszPath, LPCSTR lpszMask)
while
(
*
lpszMask
)
{
while
(
*
lpszMask
==
' '
)
lpszMask
++
;
/* Eat leading spaces */
if
(
PathMatchSingleMaskA
(
lpszPath
,
lpszMask
))
return
TRUE
;
/* Matches the current mask */
while
(
*
lpszMask
&&
*
lpszMask
!=
';'
)
lpszMask
=
CharNextA
(
lpszMask
);
lpszMask
=
CharNextA
(
lpszMask
);
/* masks separated by ';' */
if
(
*
lpszMask
==
';'
)
{
lpszMask
++
;
while
(
*
lpszMask
==
' '
)
lpszMask
++
;
/* masks may be separated by "; " */
}
}
return
FALSE
;
}
...
...
@@ -1901,18 +1900,17 @@ BOOL WINAPI PathMatchSpecW(LPCWSTR lpszPath, LPCWSTR lpszMask)
while
(
*
lpszMask
)
{
while
(
*
lpszMask
==
' '
)
lpszMask
++
;
/* Eat leading spaces */
if
(
PathMatchSingleMaskW
(
lpszPath
,
lpszMask
))
return
TRUE
;
/* Matches the current path */
while
(
*
lpszMask
&&
*
lpszMask
!=
';'
)
lpszMask
++
;
lpszMask
++
;
/* masks separated by ';' */
if
(
*
lpszMask
==
';'
)
{
lpszMask
++
;
while
(
*
lpszMask
==
' '
)
lpszMask
++
;
/* Masks may be separated by "; " */
}
}
return
FALSE
;
}
...
...
dlls/shlwapi/tests/path.c
View file @
ac0bee4b
...
...
@@ -849,7 +849,7 @@ static void test_PathMatchSpec(void)
ok
(
PathMatchSpecA
(
file
,
spec1
)
==
FALSE
,
"PathMatchSpec: Spec1 failed
\n
"
);
ok
(
PathMatchSpecA
(
file
,
spec2
)
==
TRUE
,
"PathMatchSpec: Spec2 failed
\n
"
);
ok
(
PathMatchSpecA
(
file
,
spec3
)
==
FALSE
,
"PathMatchSpec: Spec3 failed
\n
"
);
todo_wine
ok
(
PathMatchSpecA
(
file
,
spec4
)
==
TRUE
,
"PathMatchSpec: Spec4 failed
\n
"
);
ok
(
PathMatchSpecA
(
file
,
spec4
)
==
TRUE
,
"PathMatchSpec: Spec4 failed
\n
"
);
todo_wine
ok
(
PathMatchSpecA
(
file
,
spec5
)
==
TRUE
,
"PathMatchSpec: Spec5 failed
\n
"
);
todo_wine
ok
(
PathMatchSpecA
(
file
,
spec6
)
==
TRUE
,
"PathMatchSpec: Spec6 failed
\n
"
);
ok
(
PathMatchSpecA
(
file
,
spec7
)
==
FALSE
,
"PathMatchSpec: Spec7 failed
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment