Module: wine Branch: master Commit: b908ec2294d8e4ac3ccd7befbb9e530af04d24f9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b908ec2294d8e4ac3ccd7befb...
Author: Francois Gouget fgouget@codeweavers.com Date: Mon May 10 15:55:26 2021 +0200
infosoft/tests: Fix refilling the text buffer.
Up to Windows 10 1507 BreakText() would increment iCur but later Windows versions leave it unchanged. So assume all characters up to iEnd have been processed.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50844 Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/infosoft/tests/infosoft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/infosoft/tests/infosoft.c b/dlls/infosoft/tests/infosoft.c index c76aba63466..996af73ca20 100644 --- a/dlls/infosoft/tests/infosoft.c +++ b/dlls/infosoft/tests/infosoft.c @@ -152,7 +152,7 @@ static HRESULT WINAPI fillbuf_many(TEXT_SOURCE *ts) if (ts->awcBuffer == NULL) ts->awcBuffer = teststring; else - ts->awcBuffer += ts->iCur; + ts->awcBuffer += ts->iEnd;
if (!ts->awcBuffer[0]) return WBREAK_E_END_OF_TEXT;