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
54b2a106
Commit
54b2a106
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: Use _wcsnicmp instead of strnicmpW.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb071ba0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
environ.c
dlls/msvcrt/environ.c
+1
-1
file.c
dlls/msvcrt/file.c
+3
-3
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
No files found.
dlls/msvcrt/environ.c
View file @
54b2a106
...
...
@@ -63,7 +63,7 @@ MSVCRT_wchar_t * CDECL MSVCRT__wgetenv(const MSVCRT_wchar_t *name)
{
MSVCRT_wchar_t
*
str
=
*
environ
;
MSVCRT_wchar_t
*
pos
=
strchrW
(
str
,
'='
);
if
(
pos
&&
((
pos
-
str
)
==
length
)
&&
!
strncmpiW
(
str
,
name
,
length
))
if
(
pos
&&
((
pos
-
str
)
==
length
)
&&
!
MSVCRT__wcsnicmp
(
str
,
name
,
length
))
{
TRACE
(
"(%s): got %s
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
pos
+
1
));
return
pos
+
1
;
...
...
dlls/msvcrt/file.c
View file @
54b2a106
...
...
@@ -1620,17 +1620,17 @@ static int msvcrt_get_flags(const MSVCRT_wchar_t* mode, int *open_flags, int* st
mode
++
;
while
(
*
mode
==
' '
)
mode
++
;
if
(
!
strncmpiW
(
utf8
,
mode
,
ARRAY_SIZE
(
utf8
)))
if
(
!
MSVCRT__wcsnicmp
(
utf8
,
mode
,
ARRAY_SIZE
(
utf8
)))
{
*
open_flags
|=
MSVCRT__O_U8TEXT
;
mode
+=
ARRAY_SIZE
(
utf8
);
}
else
if
(
!
strncmpiW
(
utf16le
,
mode
,
ARRAY_SIZE
(
utf16le
)))
else
if
(
!
MSVCRT__wcsnicmp
(
utf16le
,
mode
,
ARRAY_SIZE
(
utf16le
)))
{
*
open_flags
|=
MSVCRT__O_U16TEXT
;
mode
+=
ARRAY_SIZE
(
utf16le
);
}
else
if
(
!
strncmpiW
(
unicode
,
mode
,
ARRAY_SIZE
(
unicode
)))
else
if
(
!
MSVCRT__wcsnicmp
(
unicode
,
mode
,
ARRAY_SIZE
(
unicode
)))
{
*
open_flags
|=
MSVCRT__O_WTEXT
;
mode
+=
ARRAY_SIZE
(
unicode
);
...
...
dlls/msvcrt/msvcrt.h
View file @
54b2a106
...
...
@@ -1197,6 +1197,7 @@ char* __cdecl MSVCRT_strtok_s(char*, const char*, char**);
char
*
__cdecl
MSVCRT__itoa
(
int
,
char
*
,
int
);
double
parse_double
(
MSVCRT_wchar_t
(
*
)(
void
*
),
void
(
*
)(
void
*
),
void
*
,
MSVCRT_pthreadlocinfo
,
int
*
);
int
__cdecl
MSVCRT_wcsncmp
(
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT__wcsnicmp
(
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
MSVCRT_size_t
);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
...
...
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