riched20: Fixed typo in EM_FINDTEXT

Lei Zhang leiz at ucla.edu
Sun Feb 26 16:16:14 CST 2006


The thread regarding this patch is here:
http://www.winehq.org/pipermail/wine-devel/2006-February/045106.html
---

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.99
diff -r1.99 editor.c
875c875
<       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)))



More information about the wine-patches mailing list