Module: wine Branch: master Commit: e94587c98d286b2f060f8c855cab87c8407c6d6a URL: http://source.winehq.org/git/wine.git/?a=commit;h=e94587c98d286b2f060f8c855c...
Author: Nikolay Sivov bunglehead@gmail.com Date: Fri Oct 23 03:57:23 2009 +0400
kernel32: Fix copied data length.
---
dlls/kernel32/locale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index dcbef36..c1888ac 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -1337,7 +1337,7 @@ INT WINAPI GetLocaleInfoW( LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len )
if (i <= *p && (lcflags & LOCALE_RETURN_GENITIVE_NAMES)) { - ret = *p - i - 1; + ret = *p - i + 1; p += i; } else ret = i;