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
a370fa83
Commit
a370fa83
authored
Jul 30, 2004
by
Troy Rollo
Committed by
Alexandre Julliard
Jul 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process sibling keys iteratively, thereby preventing exhaustion of the
stack.
parent
7f274205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
registry.c
misc/registry.c
+15
-9
No files found.
misc/registry.c
View file @
a370fa83
...
...
@@ -688,10 +688,24 @@ static int _w95_dump_dkv(_w95dkh *dkh,int nrLS,int nrMS,FILE *f)
return
TRUE
;
}
static
int
_w95_dump_one_dke
(
LPCSTR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
);
static
int
_w95_dump_dke
(
LPCSTR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
)
{
while
(
1
)
{
if
(
!
_w95_dump_one_dke
(
key_name
,
creg
,
rgkn
,
dke
,
f
,
level
))
return
FALSE
;
if
(
dke
->
next
==
0xffffffff
)
return
TRUE
;
dke
=
(
_w95dke
*
)((
char
*
)
rgkn
+
dke
->
next
);
}
}
/******************************************************************************
* _w95_dump_dke [Internal]
*/
static
int
_w95_dump_dke
(
LPCSTR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
)
static
int
_w95_dump_
one_
dke
(
LPCSTR
key_name
,
_w95creg
*
creg
,
_w95rgkn
*
rgkn
,
_w95dke
*
dke
,
FILE
*
f
,
int
level
)
{
_w95dkh
*
dkh
;
LPSTR
new_key_name
=
NULL
;
...
...
@@ -720,14 +734,6 @@ static int _w95_dump_dke(LPCSTR key_name,_w95creg *creg,_w95rgkn *rgkn,_w95dke *
memcpy
(
new_key_name
+
len
,
dkh
->
name
,
dkh
->
keynamelen
);
new_key_name
[
len
+
dkh
->
keynamelen
]
=
0
;
/* walk sibling keys */
if
(
dke
->
next
!=
0xffffffff
)
{
if
(
!
_w95_dump_dke
(
key_name
,
creg
,
rgkn
,
(
_w95dke
*
)((
char
*
)
rgkn
+
dke
->
next
),
f
,
level
))
{
free
(
new_key_name
);
return
FALSE
;
}
}
/* write the key path (something like [Software\\Microsoft\\..]) only if:
1) key has some values
2) key has no values and no subkeys
...
...
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