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
06f4532c
Commit
06f4532c
authored
Aug 23, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Don't call ungetc() twice consecutively.
Spotted by Sylvain Hitier.
parent
270845d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
regproc.c
programs/regedit/regproc.c
+6
-7
No files found.
programs/regedit/regproc.c
View file @
06f4532c
...
...
@@ -680,19 +680,18 @@ static void processRegLinesA(FILE *in, char* first_chars)
}
if
(
s
[
i
]
==
'\r'
){
/* read the next character iff it's \n */
if
(
i
+
2
>=
size_to_get
){
/* buffer too short, so put back the EOL char to
* read next cycle */
ungetc
(
'\r'
,
in
);
break
;
}
s
[
i
+
1
]
=
fgetc
(
in
);
if
(
s
[
i
+
1
]
!=
'\n'
){
ungetc
(
s
[
i
+
1
],
in
);
i
=
i
+
1
;
}
else
{
if
(
i
+
2
>=
size_to_get
){
/* buffer too short, so put back the EOL chars to
* read next cycle */
ungetc
(
'\n'
,
in
);
ungetc
(
'\r'
,
in
);
}
else
i
=
i
+
2
;
}
break
;
}
if
(
s
[
i
]
==
'\n'
){
...
...
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