Nikolay Sivov : kernel32: Fix copied data length.

Alexandre Julliard julliard at winehq.org
Fri Oct 23 10:18:59 CDT 2009


Module: wine
Branch: master
Commit: e94587c98d286b2f060f8c855cab87c8407c6d6a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e94587c98d286b2f060f8c855cab87c8407c6d6a

Author: Nikolay Sivov <bunglehead at 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;




More information about the wine-cvs mailing list