mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
libwine: Avoid converting the final null in strlwrW and struprW.
This commit is contained in:
parent
94a9db6383
commit
f7c98b036c
1 changed files with 4 additions and 4 deletions
|
@ -265,15 +265,15 @@ WINE_UNICODE_INLINE size_t strcspnW( const WCHAR *str, const WCHAR *reject )
|
|||
|
||||
WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str )
|
||||
{
|
||||
WCHAR *ret = str;
|
||||
while ((*str = tolowerW(*str))) str++;
|
||||
WCHAR *ret;
|
||||
for (ret = str; *str; str++) *str = tolowerW(*str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
WINE_UNICODE_INLINE WCHAR *struprW( WCHAR *str )
|
||||
{
|
||||
WCHAR *ret = str;
|
||||
while ((*str = toupperW(*str))) str++;
|
||||
WCHAR *ret;
|
||||
for (ret = str; *str; str++) *str = toupperW(*str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue