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
9b64ea2b
Commit
9b64ea2b
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 _mbsupr_s_l partial implementation.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=45273
parent
01f3beef
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
12 deletions
+25
-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
+18
-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 @
9b64ea2b
...
...
@@ -1202,7 +1202,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
9b64ea2b
...
...
@@ -1559,7 +1559,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
9b64ea2b
...
...
@@ -1570,7 +1570,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
9b64ea2b
...
...
@@ -874,7 +874,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
9b64ea2b
...
...
@@ -852,7 +852,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
9b64ea2b
...
...
@@ -2145,11 +2145,10 @@ unsigned char* CDECL _mbsupr(unsigned char* s)
return
ret
;
}
/*********************************************************************
* _mbsupr_s(MSVCRT.@)
* _mbsupr_s
_l
(MSVCRT.@)
*/
int
CDECL
_mbsupr_s
(
unsigned
char
*
s
,
size_t
len
)
int
CDECL
_mbsupr_s
_l
(
unsigned
char
*
s
,
size_t
len
,
_locale_t
locale
)
{
if
(
!
s
&&
!
len
)
{
...
...
@@ -2160,12 +2159,13 @@ int CDECL _mbsupr_s(unsigned char* s, size_t len)
*
_errno
()
=
EINVAL
;
return
EINVAL
;
}
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
c
;
for
(
;
*
s
&&
len
>
0
;
len
--
)
{
c
=
_mbctoupper
(
_mbsnextc
(
s
)
);
c
=
_mbctoupper
_l
(
_mbsnextc_l
(
s
,
locale
),
locale
);
/* Note that I assume that the size of the character is unchanged */
if
(
c
>
255
)
{
...
...
@@ -2175,7 +2175,12 @@ int CDECL _mbsupr_s(unsigned char* s, size_t len)
*
s
++=
c
;
}
}
else
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
_toupper_l
(
*
s
,
NULL
);
else
{
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
_toupper_l
(
*
s
,
locale
);
}
if
(
*
s
)
{
*
s
=
'\0'
;
...
...
@@ -2186,6 +2191,14 @@ int CDECL _mbsupr_s(unsigned char* s, size_t len)
}
/*********************************************************************
* _mbsupr_s(MSVCRT.@)
*/
int
CDECL
_mbsupr_s
(
unsigned
char
*
s
,
size_t
len
)
{
return
_mbsupr_s_l
(
s
,
len
,
NULL
);
}
/*********************************************************************
* _mbsspn_l (MSVCRT.@)
*/
size_t
CDECL
_mbsspn_l
(
const
unsigned
char
*
string
,
...
...
dlls/msvcrt/msvcrt.spec
View file @
9b64ea2b
...
...
@@ -823,7 +823,7 @@
@ cdecl _mbsupr(str)
# stub _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
# stub
_mbsupr_s_l(str long ptr)
@ cdecl
_mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
9b64ea2b
...
...
@@ -717,7 +717,7 @@
@ cdecl _mbsupr(str)
@ stub _mbsupr_l
@ cdecl _mbsupr_s(str long)
@
stub _mbsupr_s_l
@
cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
@ cdecl _memccpy(ptr ptr long long)
@ cdecl _memicmp(str str 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