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
82246874
Commit
82246874
authored
May 05, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Merge processRegLinesA/W() into their caller.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e8f0a8b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
31 deletions
+10
-31
regproc.c
programs/regedit/regproc.c
+10
-31
No files found.
programs/regedit/regproc.c
View file @
82246874
...
...
@@ -745,22 +745,6 @@ cleanup:
return
NULL
;
}
static
BOOL
processRegLinesA
(
FILE
*
fp
,
WCHAR
*
(
*
get_line
)(
FILE
*
),
int
reg_version
)
{
WCHAR
*
line
;
while
((
line
=
get_line
(
fp
)))
{
if
(
reg_version
==
REG_VERSION_31
)
processRegEntry31
(
line
);
else
processRegEntry
(
line
,
FALSE
);
}
closeKey
();
return
TRUE
;
}
static
WCHAR
*
get_lineW
(
FILE
*
fp
)
{
static
size_t
size
;
...
...
@@ -830,17 +814,6 @@ cleanup:
return
NULL
;
}
static
BOOL
processRegLinesW
(
FILE
*
fp
,
WCHAR
*
(
*
get_line
)(
FILE
*
))
{
WCHAR
*
line
;
while
((
line
=
get_line
(
fp
)))
processRegEntry
(
line
,
TRUE
);
closeKey
();
return
TRUE
;
}
/******************************************************************************
* Checks whether the buffer has enough room for the string or required size.
* Resizes the buffer if necessary.
...
...
@@ -1346,10 +1319,16 @@ BOOL import_registry_file(FILE* reg_file)
return
reg_version
==
REG_VERSION_FUZZY
;
}
if
(
is_unicode
)
return
processRegLinesW
(
reg_file
,
get_lineW
);
else
return
processRegLinesA
(
reg_file
,
get_lineA
,
reg_version
);
while
((
line
=
get_line
(
reg_file
)))
{
if
(
reg_version
==
REG_VERSION_31
)
processRegEntry31
(
line
);
else
processRegEntry
(
line
,
is_unicode
);
}
closeKey
();
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