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
fb071ba0
Commit
fb071ba0
authored
Jul 14, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't use strncmpiW in _wcsnicmp_l.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97095766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
wcs.c
dlls/msvcrt/wcs.c
+17
-3
No files found.
dlls/msvcrt/wcs.c
View file @
fb071ba0
...
...
@@ -141,15 +141,29 @@ INT CDECL MSVCRT__wcsicmp( const MSVCRT_wchar_t* str1, const MSVCRT_wchar_t* str
/*********************************************************************
* _wcsnicmp_l (MSVCRT.@)
*/
INT
CDECL
MSVCRT__wcsnicmp_l
(
const
MSVCRT_wchar_t
*
str1
,
const
MSVCRT_wchar_t
*
str2
,
INT
n
,
MSVCRT__locale_t
locale
)
INT
CDECL
MSVCRT__wcsnicmp_l
(
const
MSVCRT_wchar_t
*
str1
,
const
MSVCRT_wchar_t
*
str2
,
MSVCRT_size_t
n
,
MSVCRT__locale_t
locale
)
{
return
strncmpiW
(
str1
,
str2
,
n
);
MSVCRT_wchar_t
c1
,
c2
;
if
(
!
n
)
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
str1
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
str2
!=
NULL
))
return
MSVCRT__NLSCMPERROR
;
do
{
c1
=
MSVCRT__towlower_l
(
*
str1
++
,
locale
);
c2
=
MSVCRT__towlower_l
(
*
str2
++
,
locale
);
}
while
(
--
n
&&
c1
&&
(
c1
==
c2
));
return
c1
-
c2
;
}
/*********************************************************************
* _wcsnicmp (MSVCRT.@)
*/
INT
CDECL
MSVCRT__wcsnicmp
(
const
MSVCRT_wchar_t
*
str1
,
const
MSVCRT_wchar_t
*
str2
,
INT
n
)
INT
CDECL
MSVCRT__wcsnicmp
(
const
MSVCRT_wchar_t
*
str1
,
const
MSVCRT_wchar_t
*
str2
,
MSVCRT_size_t
n
)
{
return
MSVCRT__wcsnicmp_l
(
str1
,
str2
,
n
,
NULL
);
}
...
...
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