Module: wine Branch: master Commit: b88b007d95300c320d8533eb078b73f87857c1e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b88b007d95300c320d8533eb07...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Mon May 24 16:13:55 2010 -0400
richedit: Fix assignment to wrong variable (LLVM/Clang).
---
dlls/riched20/wrap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index 790c280..8d75b7f 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -232,7 +232,8 @@ static ME_DisplayItem *ME_MaximizeSplit(ME_WrapContext *wc, ME_DisplayItem *p, i } if (piter->member.run.nFlags & MERF_ENDWHITE) { - j = ME_ReverseFindNonWhitespaceV(piter->member.run.strText, i); + i = ME_ReverseFindNonWhitespaceV(piter->member.run.strText, + piter->member.run.strText->nLen); pp = ME_SplitRun(wc, piter, i); wc->pt = pp->member.run.pt; return pp;