locale: Fix for too small buffers
Alexandre Julliard
julliard at winehq.org
Sat Dec 13 22:13:05 CST 2003
Vitaliy Margolen <wine-devel at kievinfo.com> writes:
> The only question I have is: should we use len==0 as indication for size query
> or leave it as is (buffer==0)? I can't imagine someone using valid pointer when
> calling GetLocaleInfo to get the size for it. But then who knows what other
> programmers could do, considering what MSDN says.
GetLocaleInfoW takes care of that, it sets buffer to NULL if len is 0.
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list