libwine: Avoid converting the final null in strlwrW and struprW.
This commit is contained in:
parent
94a9db6383
commit
f7c98b036c
|
@ -265,15 +265,15 @@ WINE_UNICODE_INLINE size_t strcspnW( const WCHAR *str, const WCHAR *reject )
|
||||||
|
|
||||||
WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str )
|
WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str )
|
||||||
{
|
{
|
||||||
WCHAR *ret = str;
|
WCHAR *ret;
|
||||||
while ((*str = tolowerW(*str))) str++;
|
for (ret = str; *str; str++) *str = tolowerW(*str);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
WINE_UNICODE_INLINE WCHAR *struprW( WCHAR *str )
|
WINE_UNICODE_INLINE WCHAR *struprW( WCHAR *str )
|
||||||
{
|
{
|
||||||
WCHAR *ret = str;
|
WCHAR *ret;
|
||||||
while ((*str = toupperW(*str))) str++;
|
for (ret = str; *str; str++) *str = toupperW(*str);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue