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
4f5a4b83
Commit
4f5a4b83
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 and toupperW in _setmbcp_l.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b35b779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mbcs.c
dlls/msvcrt/mbcs.c
+5
-3
No files found.
dlls/msvcrt/mbcs.c
View file @
4f5a4b83
...
...
@@ -209,7 +209,7 @@ int _setmbcp_l(int cp, LCID lcid, MSVCRT_pthreadmbcinfo mbcinfo)
BYTE
*
bytes
;
WORD
chartypes
[
256
];
char
bufA
[
256
];
WCHAR
bufW
[
256
];
WCHAR
bufW
[
256
]
,
lowW
[
256
],
upW
[
256
]
;
int
charcount
;
int
ret
;
int
i
;
...
...
@@ -310,6 +310,8 @@ int _setmbcp_l(int cp, LCID lcid, MSVCRT_pthreadmbcinfo mbcinfo)
ERR
(
"MultiByteToWideChar of chars failed for cp %d, ret=%d (exp %d), error=%d
\n
"
,
newcp
,
ret
,
charcount
,
GetLastError
());
GetStringTypeW
(
CT_CTYPE1
,
bufW
,
charcount
,
chartypes
);
LCMapStringW
(
lcid
,
LCMAP_LOWERCASE
,
bufW
,
charcount
,
lowW
,
charcount
);
LCMapStringW
(
lcid
,
LCMAP_UPPERCASE
,
bufW
,
charcount
,
upW
,
charcount
);
charcount
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
@@ -318,12 +320,12 @@ int _setmbcp_l(int cp, LCID lcid, MSVCRT_pthreadmbcinfo mbcinfo)
if
(
chartypes
[
charcount
]
&
C1_UPPER
)
{
mbcinfo
->
mbctype
[
i
+
1
]
|=
_SBUP
;
bufW
[
charcount
]
=
tolowerW
(
bufW
[
charcount
])
;
bufW
[
charcount
]
=
lowW
[
charcount
]
;
}
else
if
(
chartypes
[
charcount
]
&
C1_LOWER
)
{
mbcinfo
->
mbctype
[
i
+
1
]
|=
_SBLOW
;
bufW
[
charcount
]
=
toupperW
(
bufW
[
charcount
])
;
bufW
[
charcount
]
=
upW
[
charcount
]
;
}
charcount
++
;
}
...
...
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