Commit fad8d496 authored by Esme Povirk's avatar Esme Povirk Committed by Alexandre Julliard

dwrite: Account for position != 0 in fetch loops.

parent 07fd82cd
...@@ -875,7 +875,7 @@ static HRESULT get_text_source_ptr(IDWriteTextAnalysisSource *source, UINT32 pos ...@@ -875,7 +875,7 @@ static HRESULT get_text_source_ptr(IDWriteTextAnalysisSource *source, UINT32 pos
while (read < length && *text) { while (read < length && *text) {
*text = NULL; *text = NULL;
len = 0; len = 0;
hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, read, text, &len); hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, position+read, text, &len);
if (FAILED(hr)) if (FAILED(hr))
{ {
free(*buff); free(*buff);
...@@ -1019,7 +1019,7 @@ static HRESULT WINAPI dwritetextanalyzer_AnalyzeLineBreakpoints(IDWriteTextAnaly ...@@ -1019,7 +1019,7 @@ static HRESULT WINAPI dwritetextanalyzer_AnalyzeLineBreakpoints(IDWriteTextAnaly
while (read < length && text) { while (read < length && text) {
text = NULL; text = NULL;
len = 0; len = 0;
hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, read, &text, &len); hr = IDWriteTextAnalysisSource_GetTextAtPosition(source, position+read, &text, &len);
if (FAILED(hr)) if (FAILED(hr))
goto done; goto done;
if (!text) if (!text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment