Re: ntdll: check for string and stringlength in _wcslwr and _wcsupr

2011-09-07 Thread Octavian Voicu
2011/9/7 André Hentschel : > +    if (!str || !*str) return NULL; >     return strlwrW( str ); >+if (!str || !*str) return NULL; >return struprW( str ); It seems strange to return NULL when called with an empty, non-NULL string. Maybe it should be `return str' instead (so it covers both t

Re: ntdll: check for string and stringlength in _wcslwr and _wcsupr

2011-09-07 Thread Nikolay Sivov
2011/9/7 André Hentschel : > Fixes http://bugs.winehq.org/show_bug.cgi?id=28303 (str="") > --- >  dlls/ntdll/wcstring.c |    2 ++ >  1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/dlls/ntdll/wcstring.c b/dlls/ntdll/wcstring.c > index 7f0035d..d75f10e 100644 > --- a/dlls/ntdll/wcs