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
6a78f71f
Commit
6a78f71f
authored
Nov 29, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix string size passed to CompareString in _mbsnbcoll_l.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55959
parent
244b6356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mbcs.c
dlls/msvcrt/mbcs.c
+6
-2
No files found.
dlls/msvcrt/mbcs.c
View file @
6a78f71f
...
...
@@ -1110,7 +1110,9 @@ int CDECL _mbsnbicoll_l(const unsigned char *str1, const unsigned char *str2, si
if
(
!
mbcinfo
->
ismbcodepage
)
return
_strnicoll_l
((
const
char
*
)
str1
,
(
const
char
*
)
str2
,
len
,
locale
);
return
CompareStringA
(
mbcinfo
->
mblcid
,
NORM_IGNORECASE
,
(
const
char
*
)
str1
,
len
,
(
const
char
*
)
str2
,
len
)
-
CSTR_EQUAL
;
return
CompareStringA
(
mbcinfo
->
mblcid
,
NORM_IGNORECASE
,
(
const
char
*
)
str1
,
strnlen
((
const
char
*
)
str1
,
len
),
(
const
char
*
)
str2
,
strnlen
((
const
char
*
)
str2
,
len
))
-
CSTR_EQUAL
;
}
/*********************************************************************
...
...
@@ -1156,7 +1158,9 @@ int CDECL _mbsnbcoll_l(const unsigned char *str1, const unsigned char *str2, siz
if
(
!
mbcinfo
->
ismbcodepage
)
return
_strncoll_l
((
const
char
*
)
str1
,
(
const
char
*
)
str2
,
len
,
locale
);
return
CompareStringA
(
mbcinfo
->
mblcid
,
0
,
(
const
char
*
)
str1
,
len
,
(
const
char
*
)
str2
,
len
)
-
CSTR_EQUAL
;
return
CompareStringA
(
mbcinfo
->
mblcid
,
0
,
(
const
char
*
)
str1
,
strnlen
((
const
char
*
)
str1
,
len
),
(
const
char
*
)
str2
,
strnlen
((
const
char
*
)
str2
,
len
))
-
CSTR_EQUAL
;
}
/*********************************************************************
...
...
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