Fix a bug in 1.0 emulation mode in EM_LINELENGTH (which broke PTE
installer).
This commit is contained in:
parent
ac21d34b26
commit
fd1d4b7c2b
|
@ -1666,7 +1666,8 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||||
if (item_end)
|
if (item_end)
|
||||||
nNextLineOfs = ME_CharOfsFromRunOfs(editor, ME_FindItemFwd(item_end, diRun), 0);
|
nNextLineOfs = ME_CharOfsFromRunOfs(editor, ME_FindItemFwd(item_end, diRun), 0);
|
||||||
else
|
else
|
||||||
nNextLineOfs = ME_FindItemFwd(item, diParagraphOrEnd)->member.para.nCharOfs-1;
|
nNextLineOfs = ME_FindItemFwd(item, diParagraphOrEnd)->member.para.nCharOfs
|
||||||
|
- (editor->bEmulateVersion10?2:1);
|
||||||
nChars = nNextLineOfs - nThisLineOfs;
|
nChars = nNextLineOfs - nThisLineOfs;
|
||||||
TRACE("EM_LINELENGTH(%d)==%d\n",wParam, nChars);
|
TRACE("EM_LINELENGTH(%d)==%d\n",wParam, nChars);
|
||||||
return nChars;
|
return nChars;
|
||||||
|
|
Loading…
Reference in New Issue