Re: ntdll: check for string and stringlength in _wcslwr and _wcsupr
7 Sep
2011
7 Sep
'11
3:26 p.m.
2011/9/7 André Hentschel <nerv(a)dawncrow.de>:
+ 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 the NULL and empty cases sensibly), though strlwrW/struprW seems to be able to cope with zero-length strings as the NULL char is mapped to NULL. Octavian
5301
Age (days ago)
5301
Last active (days ago)
0 comments
1 participants
participants (1)
-
Octavian Voicu