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
504231ff
Commit
504231ff
authored
May 12, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _strlwr_s_l implementation.
parent
0ea4e668
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
6 deletions
+35
-6
msvcrt.h
dlls/msvcrt/msvcrt.h
+2
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+3
-3
string.c
dlls/msvcrt/string.c
+30
-3
No files found.
dlls/msvcrt/msvcrt.h
View file @
504231ff
...
...
@@ -904,6 +904,8 @@ void __cdecl _wsearchenv(const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, MSVCRT
MSVCRT_intptr_t
__cdecl
MSVCRT__spawnvpe
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
void
__cdecl
MSVCRT__invalid_parameter
(
const
MSVCRT_wchar_t
*
expr
,
const
MSVCRT_wchar_t
*
func
,
const
MSVCRT_wchar_t
*
file
,
unsigned
int
line
,
MSVCRT_uintptr_t
arg
);
int
__cdecl
MSVCRT__toupper_l
(
int
,
MSVCRT__locale_t
);
int
__cdecl
MSVCRT__tolower_l
(
int
,
MSVCRT__locale_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)
...
...
dlls/msvcrt/msvcrt.spec
View file @
504231ff
...
...
@@ -930,10 +930,10 @@
# stub _stricmp_l(str str ptr)
@ cdecl _stricoll(str str) MSVCRT__stricoll
# stub _stricoll_l(str str ptr)
@ cdecl _strlwr(str)
ntdll._strlwr
# stub
_strlwr_l(str ptr)
@ cdecl _strlwr(str)
@ cdecl
_strlwr_l(str ptr)
@ cdecl _strlwr_s(ptr long)
# stub
_strlwr_s_l(ptr long ptr)
@ cdecl
_strlwr_s_l(ptr long ptr)
@ stub _strncoll(str str long)
# stub _strncoll_l(str str long ptr)
@ cdecl _strnicmp(str str long) ntdll._strnicmp
...
...
dlls/msvcrt/string.c
View file @
504231ff
...
...
@@ -51,12 +51,15 @@ char* CDECL _strdup(const char* str)
}
/*********************************************************************
* _strlwr_s (MSVCRT.@)
* _strlwr_s
_l
(MSVCRT.@)
*/
int
CDECL
_strlwr_s
(
char
*
str
,
MSVCRT_size_t
len
)
int
CDECL
_strlwr_s
_l
(
char
*
str
,
MSVCRT_size_t
len
,
MSVCRT__locale_t
locale
)
{
char
*
ptr
=
str
;
if
(
!
locale
)
locale
=
get_locale
();
if
(
!
str
||
!
len
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
...
...
@@ -78,7 +81,7 @@ int CDECL _strlwr_s(char *str, MSVCRT_size_t len)
while
(
*
str
)
{
*
str
=
tolower
(
*
str
);
*
str
=
MSVCRT__tolower_l
(
*
str
,
locale
);
str
++
;
}
...
...
@@ -86,6 +89,30 @@ int CDECL _strlwr_s(char *str, MSVCRT_size_t len)
}
/*********************************************************************
* _strlwr_s (MSVCRT.@)
*/
int
CDECL
_strlwr_s
(
char
*
str
,
MSVCRT_size_t
len
)
{
return
_strlwr_s_l
(
str
,
len
,
NULL
);
}
/*********************************************************************
* _strlwr_l (MSVCRT.@)
*/
int
CDECL
_strlwr_l
(
char
*
str
,
MSVCRT__locale_t
locale
)
{
return
_strlwr_s_l
(
str
,
-
1
,
locale
);
}
/*********************************************************************
* _strlwr (MSVCRT.@)
*/
int
CDECL
_strlwr
(
char
*
str
)
{
return
_strlwr_s_l
(
str
,
-
1
,
NULL
);
}
/*********************************************************************
* _strnset (MSVCRT.@)
*/
char
*
CDECL
MSVCRT__strnset
(
char
*
str
,
int
value
,
MSVCRT_size_t
len
)
...
...
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