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
679cc501
Commit
679cc501
authored
Jan 31, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: When processing 3.1 ignore any lines that don't begin with HKCR.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f04cf0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
regproc.c
programs/regedit/regproc.c
+5
-4
No files found.
programs/regedit/regproc.c
View file @
679cc501
...
...
@@ -616,8 +616,9 @@ static void processRegEntry31(WCHAR *line)
int
res
;
static
WCHAR
empty
[]
=
{
0
};
static
WCHAR
hkcr
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'L'
,
'A'
,
'S'
,
'S'
,
'E'
,
'S'
,
'_'
,
'R'
,
'O'
,
'O'
,
'T'
};
if
(
line
[
0
]
==
'\0'
)
return
;
if
(
strncmpW
(
line
,
hkcr
,
sizeof
(
hkcr
)
/
sizeof
(
WCHAR
))
)
return
;
/* get key name */
while
(
line
[
key_end
]
&&
!
isspaceW
(
line
[
key_end
]))
key_end
++
;
...
...
@@ -769,11 +770,11 @@ static void processRegLinesA(FILE *in, char* first_chars)
*
s_eol
=
'\0'
;
/* Check if the line is a header string */
if
(
!
memcmp
(
line
,
header_31
,
sizeof
(
header_31
)
))
{
if
(
!
strcmp
(
line
,
header_31
))
{
version
=
REG_VERSION_31
;
}
else
if
(
!
memcmp
(
line
,
header_40
,
sizeof
(
header_40
)
))
{
}
else
if
(
!
strcmp
(
line
,
header_40
))
{
version
=
REG_VERSION_40
;
}
else
if
(
!
memcmp
(
line
,
header_50
,
sizeof
(
header_50
)
))
{
}
else
if
(
!
strcmp
(
line
,
header_50
))
{
version
=
REG_VERSION_50
;
}
else
{
lineW
=
GetWideString
(
line
);
...
...
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