dlls/user/lstr.c fix bug in CharPrevExA()

Tony Lambregts tony_lambregts at telusplanet.net
Thu Jan 27 21:27:22 CST 2005


According to bug 2679 http://bugs.winehq.org/show_bug.cgi?id=2679

There is a bug in our implimentation of CharPrevExA() and Cedega's :)

Change log: fix bug in CharPrevExA()

Files changed: dlls/user/lstr.c
-------------- next part --------------
Index: dlls/user/lstr.c
===================================================================
RCS file: /home/wine/wine/dlls/user/lstr.c,v
retrieving revision 1.31
diff -u -r1.31 lstr.c
--- dlls/user/lstr.c	23 Dec 2004 17:21:05 -0000	1.31
+++ dlls/user/lstr.c	28 Jan 2005 03:18:43 -0000
@@ -236,7 +236,7 @@
     while (*start && (start < ptr))
     {
         LPCSTR next = CharNextExA( codepage, start, flags );
-        if (next > ptr) break;
+        if (next >= ptr) break;
         start = next;
     }
     return (LPSTR)start;


More information about the wine-patches mailing list