Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5c017522
Commit
5c017522
authored
Mar 08, 2005
by
Krzysztof Foltman
Committed by
Alexandre Julliard
Mar 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Single quotes are now handled properly (previously they were
inserted as [[']]). - Better handling of callback function's results.
parent
31375666
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
reader.c
dlls/riched20/reader.c
+10
-2
No files found.
dlls/riched20/reader.c
View file @
5c017522
...
...
@@ -95,7 +95,7 @@ int ansi_gen[] =
rtfSC_dollar
,
'$'
,
rtfSC_percent
,
'%'
,
rtfSC_ampersand
,
'&'
,
rtfSC_quoteright
,
'\
\
'
,
rtfSC_quoteright
,
'\
'
'
,
rtfSC_parenleft
,
'('
,
rtfSC_parenright
,
')'
,
rtfSC_asterisk
,
'*'
,
...
...
@@ -936,11 +936,19 @@ int _RTFGetChar(RTF_Info *info)
TRACE
(
"
\n
"
);
/* if the last buffer wasn't full, it's EOF */
if
(
info
->
dwInputSize
>
0
&&
info
->
dwInputSize
==
info
->
dwInputUsed
&&
info
->
dwInputSize
<
sizeof
(
info
->
InputBuffer
))
return
EOF
;
if
(
info
->
dwInputSize
<=
info
->
dwInputUsed
)
{
long
count
=
0
;
info
->
editstream
.
pfnCallback
(
info
->
editstream
.
dwCookie
,
info
->
editstream
.
dwError
=
info
->
editstream
.
pfnCallback
(
info
->
editstream
.
dwCookie
,
info
->
InputBuffer
,
sizeof
(
info
->
InputBuffer
),
&
count
);
/* if error, it's EOF */
if
(
info
->
editstream
.
dwError
)
return
EOF
;
/* if no bytes read, it's EOF */
if
(
count
==
0
)
return
EOF
;
info
->
dwInputSize
=
count
;
...
...
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