kernel32: Fix calculation of returned buffer in get_registry_locale_info.

Sebastian Lackner sebastian at
Fri Apr 3 07:44:27 CDT 2015

Fixes a regression introduced by 8826ba1bc86fefa22c543608585ae8f3b4310a5f.
We cannot decide if we have to append a terminating null char unless we have queried again with a bigger buffer.

 dlls/kernel32/locale.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kernel32-Fix-calculation-of-returned-buffer-in-get_r.patch
Type: text/x-patch
Size: 1665 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list