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
12a00363
Commit
12a00363
authored
Nov 06, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnbset_l implementation.
parent
62ba4a82
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
22 deletions
+39
-22
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
+31
-14
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
12a00363
...
...
@@ -1142,7 +1142,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
12a00363
...
...
@@ -1499,7 +1499,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
12a00363
...
...
@@ -1510,7 +1510,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
12a00363
...
...
@@ -814,7 +814,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
12a00363
...
...
@@ -792,7 +792,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
12a00363
...
...
@@ -2200,36 +2200,53 @@ unsigned char* CDECL _mbsset(unsigned char* str, unsigned int c)
}
/*********************************************************************
* _mbsnbset(MSVCRT.@)
* _mbsnbset
_l
(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnbset
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
)
unsigned
char
*
CDECL
_mbsnbset
_l
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
,
_locale_t
locale
)
{
unsigned
char
*
ret
=
str
;
pthreadmbcinfo
mbcinfo
;
if
(
!
len
)
return
ret
;
if
(
!
len
)
return
ret
;
if
(
!
MSVCRT_CHECK_PMT
(
str
))
return
NULL
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
!
get_mbcinfo
()
->
ismbcodepage
||
c
<
256
)
return
u__strnset
(
str
,
c
,
len
);
/* ASCII CP or SB char */
if
(
!
mbcinfo
->
ismbcodepage
||
c
<
256
)
return
u__strnset
(
str
,
c
,
len
);
/* ASCII CP or SB char */
c
&=
0xffff
;
/* Strip high bits */
while
(
str
[
0
]
&&
str
[
1
]
&&
(
len
>
1
))
while
(
str
[
0
]
&&
str
[
1
]
&&
(
len
>
1
))
{
*
str
++
=
c
>>
8
;
len
--
;
*
str
++
=
c
&
0xff
;
len
--
;
*
str
++
=
c
>>
8
;
len
--
;
*
str
++
=
c
&
0xff
;
len
--
;
}
if
(
len
&&
str
[
0
])
{
/* as per msdn pad with a blank character */
str
[
0
]
=
' '
;
if
(
len
&&
str
[
0
])
{
/* as per msdn pad with a blank character */
str
[
0
]
=
' '
;
}
return
ret
;
}
/*********************************************************************
* _mbsnbset(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnbset
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
)
{
return
_mbsnbset_l
(
str
,
c
,
len
,
NULL
);
}
/*********************************************************************
* _mbsnset(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnset
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
12a00363
...
...
@@ -763,7 +763,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
# stub
_mbsnbset_l(str long long ptr)
@ cdecl
_mbsnbset_l(str long long ptr)
# stub _mbsnbset_s(ptr long long long)
# stub _mbsnbset_s_l(ptr long long long ptr)
@ cdecl _mbsncat(str str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
12a00363
...
...
@@ -658,7 +658,7 @@
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll_l(str str long ptr)
@ cdecl _mbsnbset(ptr long long)
@
stub _mbsnbset_l
@
cdecl _mbsnbset_l(str long long ptr)
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
...
...
@@ -1227,7 +1227,7 @@
@ cdecl _o__mbsnbicoll(str str long) _mbsnbicoll
@ cdecl _o__mbsnbicoll_l(str str long ptr) _mbsnbicoll_l
@ cdecl _o__mbsnbset(ptr long long) _mbsnbset
@
stub _o_
_mbsnbset_l
@
cdecl _o__mbsnbset_l(str long long ptr)
_mbsnbset_l
@ stub _o__mbsnbset_s
@ stub _o__mbsnbset_s_l
@ cdecl _o__mbsncat(str str long) _mbsncat
...
...
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