Fix a bug in 1.0 emulation mode in EM_LINELENGTH (which broke PTE

installer).
This commit is contained in:
Krzysztof Foltman 2005-10-10 10:44:01 +00:00 committed by Alexandre Julliard
parent ac21d34b26
commit fd1d4b7c2b
1 changed files with 2 additions and 1 deletions

View File

@ -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;