Marcus Meissner : riched20: Removed more dead code.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 9 08:22:07 CST 2007
Module: wine
Branch: master
Commit: ddb5720118aa520a0ece3c6ee2ad87deeb233214
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddb5720118aa520a0ece3c6ee2ad87deeb233214
Author: Marcus Meissner <meissner at suse.de>
Date: Thu Feb 8 17:12:21 2007 +0100
riched20: Removed more dead code.
---
dlls/riched20/row.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/row.c b/dlls/riched20/row.c
index a9acb79..3abff5f 100644
--- a/dlls/riched20/row.c
+++ b/dlls/riched20/row.c
@@ -29,7 +29,7 @@ ME_DisplayItem *ME_FindRowStart(ME_Conte
ME_DisplayItem *para = ME_GetParagraph(item);
ME_MustBeWrapped(c, para);
if(nRelPos<=0) { /* if this or preceding row */
- while(nRelPos<=0) {
+ do {
ME_DisplayItem *item2 = ME_FindItemBack(item, diStartRowOrParagraph);
if (item2->type == diParagraph)
{
@@ -50,8 +50,7 @@ ME_DisplayItem *ME_FindRowStart(ME_Conte
}
assert(0 == "bug in FindItemBack(item, diStartRowOrParagraph)");
item = item2;
- }
- return item;
+ } while(1);
}
while(nRelPos>0) { /* if one of the next rows */
ME_DisplayItem *item2 = ME_FindItemFwd(item, diStartRowOrParagraph);
More information about the wine-cvs
mailing list