Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f61d417a
Commit
f61d417a
authored
Sep 25, 2011
by
Dylan Smith
Committed by
Alexandre Julliard
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Return number of chars inserted for EM_STREAMIN with SF_RTF.
parent
e060272d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
editor.c
dlls/riched20/editor.c
+4
-0
editor.c
dlls/riched20/tests/editor.c
+4
-4
No files found.
dlls/riched20/editor.c
View file @
f61d417a
...
...
@@ -1470,6 +1470,8 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
if
(
!
invalidRTF
&&
!
inStream
.
editstream
->
dwError
)
{
if
(
format
&
SF_RTF
)
{
from
=
ME_GetCursorOfs
(
&
editor
->
pCursors
[
0
]);
/* setup the RTF parser */
memset
(
&
parser
,
0
,
sizeof
parser
);
RTFSetEditStream
(
&
parser
,
&
inStream
);
...
...
@@ -1563,6 +1565,8 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
}
}
}
to
=
ME_GetCursorOfs
(
&
editor
->
pCursors
[
0
]);
num_read
=
to
-
from
;
style
=
parser
.
style
;
}
...
...
dlls/riched20/tests/editor.c
View file @
f61d417a
...
...
@@ -5062,7 +5062,7 @@ static void test_EM_STREAMIN(void)
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback
;
result
=
SendMessage
(
hwndRichEdit
,
EM_STREAMIN
,
SF_RTF
,
(
LPARAM
)
&
es
);
todo_wine
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
12
,
...
...
@@ -5077,7 +5077,7 @@ static void test_EM_STREAMIN(void)
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback
;
result
=
SendMessage
(
hwndRichEdit
,
EM_STREAMIN
,
SF_RTF
,
(
LPARAM
)
&
es
);
todo_wine
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
12
,
...
...
@@ -5092,7 +5092,7 @@ static void test_EM_STREAMIN(void)
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback
;
result
=
SendMessage
(
hwndRichEdit
,
EM_STREAMIN
,
SF_RTF
,
(
LPARAM
)
&
es
);
todo_wine
ok
(
result
==
13
,
"got %ld, expected %d
\n
"
,
result
,
13
);
ok
(
result
==
13
,
"got %ld, expected %d
\n
"
,
result
,
13
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
14
,
...
...
@@ -5106,7 +5106,7 @@ static void test_EM_STREAMIN(void)
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback
;
result
=
SendMessage
(
hwndRichEdit
,
EM_STREAMIN
,
SF_RTF
,
(
LPARAM
)
&
es
);
todo_wine
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
ok
(
result
==
12
,
"got %ld, expected %d
\n
"
,
result
,
12
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
12
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment