diff --git a/include/wine/unicode.h b/include/wine/unicode.h index b685e4396a0..35c61666d22 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -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; }