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
dcade852
Commit
dcade852
authored
Jun 16, 2009
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix reading from stdin.
parent
c2932858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
regproc.c
programs/regedit/regproc.c
+11
-3
No files found.
programs/regedit/regproc.c
View file @
dcade852
...
...
@@ -610,20 +610,29 @@ static void processRegEntry(WCHAR* stdInput, BOOL isUnicode)
*
* Parameters:
* in - input stream to read from
* first_chars - beginning of stream, read due to Unicode check
*/
static
void
processRegLinesA
(
FILE
*
in
)
static
void
processRegLinesA
(
FILE
*
in
,
char
*
first_chars
)
{
LPSTR
line
=
NULL
;
/* line read from input stream */
ULONG
lineSize
=
REG_VAL_BUF_SIZE
;
line
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lineSize
);
CHECK_ENOUGH_MEMORY
(
line
);
memcpy
(
line
,
first_chars
,
2
);
while
(
!
feof
(
in
))
{
LPSTR
s
;
/* The pointer into line for where the current fgets should read */
LPSTR
check
;
WCHAR
*
lineW
;
s
=
line
;
if
(
first_chars
)
{
s
+=
2
;
first_chars
=
NULL
;
}
for
(;;)
{
size_t
size_remaining
;
int
size_to_get
;
...
...
@@ -1373,8 +1382,7 @@ BOOL import_registry_file(FILE* reg_file)
processRegLinesW
(
reg_file
);
}
else
{
rewind
(
reg_file
);
processRegLinesA
(
reg_file
);
processRegLinesA
(
reg_file
,
(
char
*
)
s
);
}
}
return
TRUE
;
...
...
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