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
01f3beef
Commit
01f3beef
authored
Oct 18, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbslwr_s_l partial implementation.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=45273
parent
36ea6f02
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
12 deletions
+24
-12
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+17
-5
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+1
-1
No files found.
dlls/msvcr100/msvcr100.spec
View file @
01f3beef
...
...
@@ -1122,7 +1122,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
01f3beef
...
...
@@ -1479,7 +1479,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
01f3beef
...
...
@@ -1490,7 +1490,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
01f3beef
...
...
@@ -794,7 +794,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
01f3beef
...
...
@@ -772,7 +772,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/msvcrt/mbcs.c
View file @
01f3beef
...
...
@@ -2065,11 +2065,10 @@ unsigned char* CDECL _mbslwr(unsigned char* s)
return
ret
;
}
/*********************************************************************
* _mbslwr_s(MSVCRT.@)
* _mbslwr_s
_l
(MSVCRT.@)
*/
int
CDECL
_mbslwr_s
(
unsigned
char
*
s
,
size_t
len
)
int
CDECL
_mbslwr_s
_l
(
unsigned
char
*
s
,
size_t
len
,
_locale_t
locale
)
{
if
(
!
s
&&
!
len
)
{
...
...
@@ -2080,12 +2079,13 @@ int CDECL _mbslwr_s(unsigned char* s, size_t len)
*
_errno
()
=
EINVAL
;
return
EINVAL
;
}
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
c
;
for
(
;
*
s
&&
len
>
0
;
len
--
)
{
c
=
_mbctolower
(
_mbsnextc
(
s
)
);
c
=
_mbctolower
_l
(
_mbsnextc_l
(
s
,
locale
),
locale
);
/* Note that I assume that the size of the character is unchanged */
if
(
c
>
255
)
{
...
...
@@ -2095,7 +2095,12 @@ int CDECL _mbslwr_s(unsigned char* s, size_t len)
*
s
++=
c
;
}
}
else
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
_tolower_l
(
*
s
,
NULL
);
else
{
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
_tolower_l
(
*
s
,
locale
);
}
if
(
*
s
)
{
*
s
=
'\0'
;
...
...
@@ -2105,6 +2110,13 @@ int CDECL _mbslwr_s(unsigned char* s, size_t len)
return
0
;
}
/*********************************************************************
* _mbslwr_s(MSVCRT.@)
*/
int
CDECL
_mbslwr_s
(
unsigned
char
*
str
,
size_t
len
)
{
return
_mbslwr_s_l
(
str
,
len
,
NULL
);
}
/*********************************************************************
* _mbsupr(MSVCRT.@)
...
...
dlls/msvcrt/msvcrt.spec
View file @
01f3beef
...
...
@@ -743,7 +743,7 @@
@ cdecl _mbslwr(str)
# stub _mbslwr_l(str ptr)
@ cdecl _mbslwr_s(str long)
# stub
_mbslwr_s_l(str long ptr)
@ cdecl
_mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
# stub _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
01f3beef
...
...
@@ -637,7 +637,7 @@
@ cdecl _mbslwr(str)
@ stub _mbslwr_l
@ cdecl _mbslwr_s(str long)
@
stub _mbslwr_s_l
@
cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@ stub _mbsnbcat_l
@ cdecl _mbsnbcat_s(str long ptr long)
...
...
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