riched20: Fixed typo in EM_FINDTEXT
Lei Zhang
leiz at ucla.edu
Tue Feb 28 23:27:36 CST 2006
The thread regarding this patch is here:
http://www.winehq.org/pipermail/wine-devel/2006-February/045106.html
In the previous incarnation of this patch I forgot to do "diff -u"
---
ChangeLog:
Make sure pCurItem is not NULL, both as a sanity check and to be
consistent with the code in the search down block.
---
editor.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: dlls/riched20/editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.101
diff -u -r1.101 editor.c
--- dlls/riched20/editor.c 27 Feb 2006 15:35:12 -0000 1.101
+++ dlls/riched20/editor.c 1 Mar 2006 05:24:36 -0000
@@ -872,7 +872,7 @@
int nCurEnd = nEnd;
int nMatched = 0;
- while (ME_CharCompare(pCurItem->member.run.strText->szData[nCurEnd - nMatched - 1], text[nLen - nMatched - 1], (flags & FR_MATCHCASE)))
+ while (pCurItem && ME_CharCompare(pCurItem->member.run.strText->szData[nCurEnd - nMatched - 1], text[nLen - nMatched - 1], (flags & FR_MATCHCASE)))
{
nMatched++;
if (nMatched == nLen)
More information about the wine-patches
mailing list