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
cb3815ae
Commit
cb3815ae
authored
Jan 22, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Jan 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Cope with '\r'-only end-of-line markers.
parent
c22be15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
ppd.c
dlls/wineps.drv/ppd.c
+13
-3
No files found.
dlls/wineps.drv/ppd.c
View file @
cb3815ae
...
...
@@ -266,7 +266,15 @@ static BOOL get_line( char *buf, int size, struct map_context *ctx )
{
if
(
ctx
->
pos
>
ctx
->
end
)
break
;
buf
[
i
]
=
*
ctx
->
pos
++
;
if
(
buf
[
i
]
==
'\n'
)
/* \r\n -> \n */
if
(
buf
[
i
]
==
'\r'
&&
ctx
->
pos
<=
ctx
->
end
&&
*
ctx
->
pos
==
'\n'
)
{
ctx
->
pos
++
;
buf
[
i
]
=
'\n'
;
}
if
(
buf
[
i
]
==
'\n'
||
buf
[
i
]
==
'\r'
)
{
i
++
;
break
;
...
...
@@ -394,9 +402,11 @@ static BOOL PSDRV_PPDGetNextTuple(struct map_context *ctx, PPDTuple *tuple)
break
;
}
while
(
1
);
if
(
line
[
strlen
(
line
)
-
1
]
!=
'\n'
)
{
cp
=
line
+
strlen
(
line
)
-
1
;
if
(
*
cp
!=
'\n'
&&
*
cp
!=
'\r'
)
{
ERR
(
"Line too long.
\n
"
);
goto
start
;
goto
start
;
}
for
(
cp
=
line
;
!
isspace
(
*
cp
)
&&
*
cp
!=
':'
;
cp
++
)
...
...
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