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
a14e9671
Commit
a14e9671
authored
Sep 28, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix PathIsValidChar tests that fail on some versions of Windows.
parent
830f1563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
33 deletions
+5
-33
path.c
dlls/shlwapi/tests/path.c
+5
-33
No files found.
dlls/shlwapi/tests/path.c
View file @
a14e9671
...
...
@@ -271,62 +271,34 @@ static void test_PathIsValidCharA(void)
BOOL
ret
;
unsigned
int
c
;
ret
=
pPathIsValidCharA
(
0x7f
,
0
);
ok
(
!
ret
,
"PathIsValidCharA succeeded: 0x%08x
\n
"
,
(
DWORD
)
ret
);
ret
=
pPathIsValidCharA
(
0x7f
,
1
);
ok
(
!
ret
,
"PathIsValidCharA succeeded: 0x%08x
\n
"
,
(
DWORD
)
ret
);
for
(
c
=
0
;
c
<
0x7f
;
c
++
)
{
ret
=
pPathIsValidCharA
(
c
,
~
0U
);
ok
(
ret
==
SHELL_charclass
[
c
]
||
(
ret
==
1
&&
SHELL_charclass
[
c
]
==
0xffffffff
),
"PathIsValidCharA failed: 0x%02x got 0x%08x expected 0x%08x
\n
"
,
c
,
(
DWORD
)
ret
,
SHELL_charclass
[
c
]
);
ok
(
ret
||
!
SHELL_charclass
[
c
],
"PathIsValidCharA failed: 0x%02x got 0x%08x
\n
"
,
c
,
ret
);
}
for
(
c
=
0x7f
;
c
<=
0xff
;
c
++
)
{
ret
=
pPathIsValidCharA
(
c
,
~
0U
);
ok
(
ret
==
0x00000100
,
"PathIsValidCharA failed: 0x%02x got 0x%08x expected 0x00000100
\n
"
,
c
,
(
DWORD
)
ret
);
ok
(
ret
,
"PathIsValidCharA failed: 0x%02x got 0x%08x
\n
"
,
c
,
ret
);
}
}
static
void
test_PathIsValidCharW
(
void
)
{
BOOL
ret
;
unsigned
int
c
,
err_count
=
0
;
ret
=
pPathIsValidCharW
(
0x7f
,
0
);
ok
(
!
ret
,
"PathIsValidCharW succeeded: 0x%08x
\n
"
,
(
DWORD
)
ret
);
ret
=
pPathIsValidCharW
(
0x7f
,
1
);
ok
(
!
ret
,
"PathIsValidCharW succeeded: 0x%08x
\n
"
,
(
DWORD
)
ret
);
unsigned
int
c
;
for
(
c
=
0
;
c
<
0x7f
;
c
++
)
{
ret
=
pPathIsValidCharW
(
c
,
~
0U
);
ok
(
ret
==
SHELL_charclass
[
c
]
||
(
ret
==
1
&&
SHELL_charclass
[
c
]
==
0xffffffff
),
"PathIsValidCharW failed: 0x%02x got 0x%08x expected 0x%08x
\n
"
,
c
,
(
DWORD
)
ret
,
SHELL_charclass
[
c
]
);
ok
(
ret
||
!
SHELL_charclass
[
c
],
"PathIsValidCharW failed: 0x%02x got 0x%08x
\n
"
,
c
,
ret
);
}
for
(
c
=
0x007f
;
c
<=
0xffff
;
c
++
)
{
ret
=
pPathIsValidCharW
(
c
,
~
0U
);
ok
(
ret
==
0x00000100
,
"PathIsValidCharW failed: 0x%02x got 0x%08x expected 0x00000100
\n
"
,
c
,
(
DWORD
)
ret
);
if
(
ret
!=
0x00000100
)
{
if
(
++
err_count
>
100
)
{
trace
(
"skipping rest of PathIsValidCharW tests "
"because of the current number of errors
\n
"
);
break
;
}
}
ok
(
ret
,
"PathIsValidCharW failed: 0x%02x got 0x%08x
\n
"
,
c
,
ret
);
}
}
...
...
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