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
bc47bff4
Commit
bc47bff4
authored
Jul 16, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't use tolowerW.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f5a4b83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
file.c
dlls/msvcrt/file.c
+2
-2
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
wcs.c
dlls/msvcrt/wcs.c
+3
-3
No files found.
dlls/msvcrt/file.c
View file @
bc47bff4
...
...
@@ -3179,8 +3179,8 @@ int CDECL MSVCRT__wstat64(const MSVCRT_wchar_t* path, struct MSVCRT__stat64 * bu
/* executable? */
if
(
plen
>
6
&&
path
[
plen
-
4
]
==
'.'
)
/* shortest exe: "\x.exe" */
{
ULONGLONG
ext
=
tolowerW
(
path
[
plen
-
1
])
|
(
tolowerW
(
path
[
plen
-
2
])
<<
16
)
|
((
ULONGLONG
)
tolowerW
(
path
[
plen
-
3
])
<<
32
);
ULONGLONG
ext
=
MSVCRT_towlower
(
path
[
plen
-
1
])
|
(
MSVCRT_towlower
(
path
[
plen
-
2
])
<<
16
)
|
((
ULONGLONG
)
MSVCRT_towlower
(
path
[
plen
-
3
])
<<
32
);
if
(
ext
==
WCEXE
||
ext
==
WCBAT
||
ext
==
WCCMD
||
ext
==
WCCOM
)
mode
|=
ALL_S_IEXEC
;
}
...
...
dlls/msvcrt/msvcrt.h
View file @
bc47bff4
...
...
@@ -1199,6 +1199,7 @@ char* __cdecl MSVCRT__itoa(int, char*, int);
double
parse_double
(
MSVCRT_wchar_t
(
*
)(
void
*
),
void
(
*
)(
void
*
),
void
*
,
MSVCRT_pthreadlocinfo
,
int
*
);
int
__cdecl
MSVCRT_wcsncmp
(
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT__wcsnicmp
(
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT_towlower
(
MSVCRT_wint_t
);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
...
...
dlls/msvcrt/wcs.c
View file @
bc47bff4
...
...
@@ -411,7 +411,7 @@ int CDECL MSVCRT__wcslwr_s_l( MSVCRT_wchar_t* str, MSVCRT_size_t n, MSVCRT__loca
while
(
n
--
)
{
if
(
!*
ptr
)
return
0
;
*
ptr
=
tolowerW
(
*
ptr
);
*
ptr
=
MSVCRT__towlower_l
(
*
ptr
,
locale
);
ptr
++
;
}
...
...
@@ -2345,7 +2345,7 @@ __int64 CDECL MSVCRT__wcstoi64_l(const MSVCRT_wchar_t *nptr,
}
else
if
(
*
nptr
==
'+'
)
nptr
++
;
if
((
base
==
0
||
base
==
16
)
&&
wctoint
(
*
nptr
,
1
)
==
0
&&
tolowerW
(
*
(
nptr
+
1
))
==
'x'
)
{
if
((
base
==
0
||
base
==
16
)
&&
wctoint
(
*
nptr
,
1
)
==
0
&&
(
nptr
[
1
]
==
'x'
||
nptr
[
1
]
==
'X'
)
)
{
base
=
16
;
nptr
+=
2
;
}
...
...
@@ -2518,7 +2518,7 @@ unsigned __int64 CDECL MSVCRT__wcstoui64_l(const MSVCRT_wchar_t *nptr,
}
else
if
(
*
nptr
==
'+'
)
nptr
++
;
if
((
base
==
0
||
base
==
16
)
&&
wctoint
(
*
nptr
,
1
)
==
0
&&
tolowerW
(
*
(
nptr
+
1
))
==
'x'
)
{
if
((
base
==
0
||
base
==
16
)
&&
wctoint
(
*
nptr
,
1
)
==
0
&&
(
nptr
[
1
]
==
'x'
||
nptr
[
1
]
==
'X'
)
)
{
base
=
16
;
nptr
+=
2
;
}
...
...
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