Vitaliy Margolen wine-devel@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.