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
c0bcf26d
Commit
c0bcf26d
authored
Nov 04, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable safe reading of registry file, even if file is broken.
parent
66695ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
registry.c
misc/registry.c
+8
-2
No files found.
misc/registry.c
View file @
c0bcf26d
...
@@ -1145,7 +1145,9 @@ static int _wine_loadsubkey( FILE *F, LPKEYSTRUCT lpkey, int level, char **buf,
...
@@ -1145,7 +1145,9 @@ static int _wine_loadsubkey( FILE *F, LPKEYSTRUCT lpkey, int level, char **buf,
WARN_
(
reg
)(
"Got a subhierarchy without resp. key?
\n
"
);
WARN_
(
reg
)(
"Got a subhierarchy without resp. key?
\n
"
);
return
0
;
return
0
;
}
}
_wine_loadsubkey
(
F
,
lpxkey
,
level
+
1
,
buf
,
buflen
,
optflag
);
if
(
!
_wine_loadsubkey
(
F
,
lpxkey
,
level
+
1
,
buf
,
buflen
,
optflag
))
if
(
!
_wine_read_line
(
F
,
buf
,
buflen
))
return
1
;
continue
;
continue
;
}
}
...
@@ -1176,7 +1178,11 @@ static int _wine_loadsubkey( FILE *F, LPKEYSTRUCT lpkey, int level, char **buf,
...
@@ -1176,7 +1178,11 @@ static int _wine_loadsubkey( FILE *F, LPKEYSTRUCT lpkey, int level, char **buf,
}
}
/* skip the 2 , */
/* skip the 2 , */
s
=
strchr
(
s
,
','
);
s
++
;
s
=
strchr
(
s
,
','
);
s
++
;
s
=
strchr
(
s
,
','
);
s
++
;
s
=
strchr
(
s
,
','
);
if
(
!
s
++
)
{
WARN_
(
reg
)(
"Haven't understood possible value in |%s|, skipping.
\n
"
,
*
buf
);
break
;
}
if
(
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
)
{
if
(
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
)
{
s
=
_wine_read_USTRING
(
s
,(
LPWSTR
*
)
&
data
);
s
=
_wine_read_USTRING
(
s
,(
LPWSTR
*
)
&
data
);
if
(
data
)
if
(
data
)
...
...
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