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
59d0ad23
Commit
59d0ad23
authored
Mar 27, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use wcslwr() instead of tolowerW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f599b2cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
directory.c
dlls/ntdll/directory.c
+6
-4
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
No files found.
dlls/ntdll/directory.c
View file @
59d0ad23
...
...
@@ -2344,7 +2344,7 @@ static NTSTATUS get_dos_device( const WCHAR *name, UINT name_len, ANSI_STRING *u
strcat
(
unix_name
,
"/dosdevices/"
);
dev
=
unix_name
+
strlen
(
unix_name
);
for
(
i
=
0
;
i
<
name_len
;
i
++
)
dev
[
i
]
=
(
char
)
tolowerW
(
name
[
i
]);
for
(
i
=
0
;
i
<
name_len
;
i
++
)
dev
[
i
]
=
(
name
[
i
]
>=
'A'
&&
name
[
i
]
<=
'Z'
?
name
[
i
]
+
32
:
name
[
i
]);
dev
[
i
]
=
0
;
/* special case for drive devices */
...
...
@@ -2755,7 +2755,7 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI
struct
stat
st
;
char
*
unix_name
;
int
pos
,
ret
,
name_len
,
unix_len
,
prefix_len
;
WCHAR
prefix
[
MAX_DIR_ENTRY_LEN
];
WCHAR
prefix
[
MAX_DIR_ENTRY_LEN
+
1
];
BOOLEAN
is_unix
=
FALSE
;
name
=
nameW
->
Buffer
;
...
...
@@ -2784,8 +2784,10 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI
if
(
pos
==
name_len
)
/* no subdir, plain DOS device */
return
get_dos_device
(
name
,
name_len
,
unix_name_ret
);
for
(
prefix_len
=
0
;
prefix_len
<
pos
;
prefix_len
++
)
prefix
[
prefix_len
]
=
tolowerW
(
name
[
prefix_len
]);
prefix_len
=
pos
;
memcpy
(
prefix
,
name
,
prefix_len
*
sizeof
(
WCHAR
)
);
prefix
[
prefix_len
]
=
0
;
wcslwr
(
prefix
);
name
+=
prefix_len
;
name_len
-=
prefix_len
;
...
...
dlls/ntdll/ntdll_misc.h
View file @
59d0ad23
...
...
@@ -298,6 +298,7 @@ ULONG __cdecl NTDLL_wcstoul( LPCWSTR s, LPWSTR *end, INT base );
#define wcsicmp(s1,s2) NTDLL__wcsicmp(s1,s2)
#define wcsnicmp(s1,s2,n) NTDLL__wcsnicmp(s1,s2,n)
#define wcslwr(s) NTDLL__wcslwr(s)
#define wcsupr(s) NTDLL__wcsupr(s)
/* convert from straight ASCII to Unicode without depending on the current codepage */
...
...
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