Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b779aac8
Commit
b779aac8
authored
May 02, 2008
by
James Hawkins
Committed by
Alexandre Julliard
May 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix two tests that fail on all NT platforms.
parent
86b99de8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
path.c
dlls/ntdll/tests/path.c
+12
-2
No files found.
dlls/ntdll/tests/path.c
View file @
b779aac8
...
...
@@ -114,11 +114,9 @@ static void test_RtlIsDosDeviceName(void)
{
"c:nul. . . :"
,
4
,
6
},
{
"c:nul . . :"
,
4
,
6
},
{
"c:nul0"
,
0
,
0
},
{
"c:prn:aaa"
,
0
,
0
},
{
"c:PRN:.txt"
,
4
,
6
},
{
"c:aux:.txt..."
,
4
,
6
},
{
"c:prn:.txt:"
,
4
,
6
},
{
"c:nul:aaa"
,
0
,
0
},
{
"con:"
,
0
,
6
},
{
"lpt1:"
,
0
,
8
},
{
"c:com5:"
,
4
,
8
},
...
...
@@ -147,6 +145,18 @@ static void test_RtlIsDosDeviceName(void)
"Wrong result (%d,%d)/(%d,%d) for %s
\n
"
,
HIWORD
(
ret
),
LOWORD
(
ret
),
test
->
pos
,
test
->
len
,
test
->
path
);
}
pRtlMultiByteToUnicodeN
(
buffer
,
sizeof
(
buffer
),
NULL
,
"c:prn:aaa"
,
strlen
(
"c:prn:aaa"
)
+
1
);
ret
=
pRtlIsDosDeviceName_U
(
buffer
);
ok
(
ret
==
MAKELONG
(
6
,
4
)
||
/* NT */
ret
==
MAKELONG
(
0
,
0
),
/* win9x */
"Wrong result (%d,%d)/(4,6) or (0,0) for c:prn:aaa
\n
"
,
HIWORD
(
ret
),
LOWORD
(
ret
)
);
pRtlMultiByteToUnicodeN
(
buffer
,
sizeof
(
buffer
),
NULL
,
"c:nul:aaa"
,
strlen
(
"c:nul:aaa"
)
+
1
);
ret
=
pRtlIsDosDeviceName_U
(
buffer
);
ok
(
ret
==
MAKELONG
(
6
,
4
)
||
/* NT */
ret
==
MAKELONG
(
0
,
0
),
/* win9x */
"Wrong result (%d,%d)/(4,6) or (0,0) for c:nul:aaa
\n
"
,
HIWORD
(
ret
),
LOWORD
(
ret
)
);
}
static
void
test_RtlIsNameLegalDOS8Dot3
(
void
)
...
...
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