Esme Povirk : dwrite: Account for position != 0 in fetch loops.
Alexandre Julliard
julliard at winehq.org
Mon Dec 13 15:59:53 CST 2021
Module: wine
Branch: master
Commit: fad8d49606adf1ff1d9aa658ef56fbe1f0034c56
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fad8d49606adf1ff1d9aa658ef56fbe1f0034c56
Author: Esme Povirk <esme at codeweavers.com>
Date: Sat Dec 11 14:04:28 2021 -0600
dwrite: Account for position != 0 in fetch loops.
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/analyzer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index 92a02f8d3aa..13ccf8e4434 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -875,7 +875,7 @@ static HRESULT get_text_source_ptr(IDWriteTextAnalysisSource *source, UINT32 pos
while (read < length && *text) {
*text = NULL;
len = 0;
- hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, read, text, &len);
+ hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, position+read, text, &len);
if (FAILED(hr))
{
free(*buff);
@@ -1019,7 +1019,7 @@ static HRESULT WINAPI dwritetextanalyzer_AnalyzeLineBreakpoints(IDWriteTextAnaly
while (read < length && text) {
text = NULL;
len = 0;
- hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, read, &text, &len);
+ hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, position+read, &text, &len);
if (FAILED(hr))
goto done;
if (!text)
More information about the wine-cvs
mailing list