Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5de3334a
Commit
5de3334a
authored
Jun 13, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When processing the reg section we need to delete before adding.
First pass implementation of UpdateIni.
parent
161f555a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
4 deletions
+47
-4
install.c
dlls/setupapi/install.c
+47
-4
No files found.
dlls/setupapi/install.c
View file @
5de3334a
...
...
@@ -416,7 +416,50 @@ static BOOL registry_callback( HINF hinf, PCWSTR field, void *arg )
static
BOOL
update_ini_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
FIXME
(
"should update ini %s
\n
"
,
debugstr_w
(
field
)
);
INFCONTEXT
context
;
BOOL
ok
=
SetupFindFirstLineW
(
hinf
,
field
,
NULL
,
&
context
);
for
(;
ok
;
ok
=
SetupFindNextLine
(
&
context
,
&
context
))
{
WCHAR
buffer
[
MAX_INF_STRING_LENGTH
];
WCHAR
filename
[
MAX_INF_STRING_LENGTH
];
WCHAR
section
[
MAX_INF_STRING_LENGTH
];
WCHAR
entry
[
MAX_INF_STRING_LENGTH
];
WCHAR
string
[
MAX_INF_STRING_LENGTH
];
LPWSTR
divider
;
if
(
!
SetupGetStringFieldW
(
&
context
,
1
,
filename
,
sizeof
(
filename
)
/
sizeof
(
WCHAR
),
NULL
))
continue
;
if
(
!
SetupGetStringFieldW
(
&
context
,
2
,
section
,
sizeof
(
section
)
/
sizeof
(
WCHAR
),
NULL
))
continue
;
if
(
!
SetupGetStringFieldW
(
&
context
,
4
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
NULL
))
continue
;
divider
=
strchrW
(
buffer
,
'='
);
if
(
divider
)
{
*
divider
=
0
;
strcpyW
(
entry
,
buffer
);
divider
++
;
strcpyW
(
string
,
divider
);
}
else
{
strcpyW
(
entry
,
buffer
);
string
[
0
]
=
0
;
}
TRACE
(
"Writing %s = %s in %s of file %s
\n
"
,
debugstr_w
(
entry
),
debugstr_w
(
string
),
debugstr_w
(
section
),
debugstr_w
(
filename
));
WritePrivateProfileStringW
(
section
,
entry
,
string
,
filename
);
}
return
TRUE
;
}
...
...
@@ -610,12 +653,12 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
struct
registry_callback_info
info
;
info
.
default_root
=
key_root
;
info
.
delete
=
FALSE
;
if
(
!
iterate_section_fields
(
hinf
,
section
,
AddReg
,
registry_callback
,
&
info
))
return
FALSE
;
info
.
delete
=
TRUE
;
if
(
!
iterate_section_fields
(
hinf
,
section
,
DelReg
,
registry_callback
,
&
info
))
return
FALSE
;
info
.
delete
=
FALSE
;
if
(
!
iterate_section_fields
(
hinf
,
section
,
AddReg
,
registry_callback
,
&
info
))
return
FALSE
;
}
if
(
flags
&
(
SPINST_BITREG
|
SPINST_REGSVR
|
SPINST_UNREGSVR
|
SPINST_PROFILEITEMS
|
SPINST_COPYINF
))
FIXME
(
"unsupported flags %x
\n
"
,
flags
);
...
...
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