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
a799d416
Commit
a799d416
authored
Mar 26, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't use toupper in RtlIsNameLegalDOS8Dot3 tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
073bb1d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
path.c
dlls/ntdll/tests/path.c
+5
-6
No files found.
dlls/ntdll/tests/path.c
View file @
a799d416
...
...
@@ -240,14 +240,13 @@ static void test_RtlIsNameLegalDOS8Dot3(void)
ok
(
spaces
==
test
->
spaces
,
"Wrong spaces value %d/%d for '%s'
\n
"
,
spaces
,
test
->
spaces
,
test
->
path
);
if
(
strlen
(
test
->
path
)
<=
12
)
{
STRING
test_str
;
char
str
[
13
];
int
i
;
strcpy
(
str
,
test
->
path
);
for
(
i
=
0
;
str
[
i
];
i
++
)
str
[
i
]
=
toupper
(
str
[
i
]);
ok
(
oem_ret
.
Length
==
strlen
(
test
->
path
),
"Wrong length %d/%d for '%s'
\n
"
,
oem_ret
.
Length
,
lstrlenA
(
test
->
path
),
test
->
path
);
ok
(
!
memcmp
(
oem_ret
.
Buffer
,
str
,
oem_ret
.
Length
),
"Wrong string '%.*s'/'%s'
\n
"
,
oem_ret
.
Length
,
oem_ret
.
Buffer
,
str
);
RtlInitString
(
&
test_str
,
str
);
RtlUpperString
(
&
test_str
,
&
test_str
);
ok
(
!
RtlCompareString
(
&
oem_ret
,
&
test_str
,
FALSE
),
"Wrong string '%.*s'/'%s'
\n
"
,
oem_ret
.
Length
,
oem_ret
.
Buffer
,
test
->
path
);
}
}
}
...
...
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