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
970cfc74
Commit
970cfc74
authored
Apr 02, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Constify some variables.
parent
51bb7d15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
install.c
dlls/advpack/install.c
+9
-9
No files found.
dlls/advpack/install.c
View file @
970cfc74
...
...
@@ -59,7 +59,7 @@ typedef struct _ADVInfo
BOOL
need_reboot
;
}
ADVInfo
;
typedef
HRESULT
(
*
iterate_fields_func
)(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
);
typedef
HRESULT
(
*
iterate_fields_func
)(
HINF
hinf
,
PCWSTR
field
,
const
void
*
arg
);
/* Advanced INF commands */
static
const
WCHAR
CheckAdminRights
[]
=
{
...
...
@@ -76,7 +76,7 @@ static const WCHAR RunPostSetupCommands[] = {
};
/* Advanced INF callbacks */
static
HRESULT
del_dirs_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
static
HRESULT
del_dirs_callback
(
HINF
hinf
,
PCWSTR
field
,
const
void
*
arg
)
{
INFCONTEXT
context
;
HRESULT
hr
=
S_OK
;
...
...
@@ -99,7 +99,7 @@ static HRESULT del_dirs_callback(HINF hinf, PCWSTR field, void *arg)
return
hr
;
}
static
HRESULT
per_user_install_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
static
HRESULT
per_user_install_callback
(
HINF
hinf
,
PCWSTR
field
,
const
void
*
arg
)
{
PERUSERSECTIONW
per_user
;
INFCONTEXT
context
;
...
...
@@ -142,7 +142,7 @@ static HRESULT per_user_install_callback(HINF hinf, PCWSTR field, void *arg)
return
SetPerUserSecValuesW
(
&
per_user
);
}
static
HRESULT
register_ocxs_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
static
HRESULT
register_ocxs_callback
(
HINF
hinf
,
PCWSTR
field
,
const
void
*
arg
)
{
HMODULE
hm
;
INFCONTEXT
context
;
...
...
@@ -180,9 +180,9 @@ static HRESULT register_ocxs_callback(HINF hinf, PCWSTR field, void *arg)
return
hr
;
}
static
HRESULT
run_setup_commands_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
static
HRESULT
run_setup_commands_callback
(
HINF
hinf
,
PCWSTR
field
,
const
void
*
arg
)
{
ADVInfo
*
info
=
(
ADVInfo
*
)
arg
;
const
ADVInfo
*
info
=
(
const
ADVInfo
*
)
arg
;
INFCONTEXT
context
;
HRESULT
hr
=
S_OK
;
DWORD
size
;
...
...
@@ -291,7 +291,7 @@ static HRESULT iterate_section_fields(HINF hinf, PCWSTR section, PCWSTR key,
return
hr
;
}
static
HRESULT
check_admin_rights
(
ADVInfo
*
info
)
static
HRESULT
check_admin_rights
(
const
ADVInfo
*
info
)
{
INT
check
;
INFCONTEXT
context
;
...
...
@@ -311,7 +311,7 @@ static HRESULT check_admin_rights(ADVInfo *info)
}
/* performs a setupapi-level install of the INF file */
static
HRESULT
spapi_install
(
ADVInfo
*
info
)
static
HRESULT
spapi_install
(
const
ADVInfo
*
info
)
{
BOOL
ret
;
HRESULT
res
;
...
...
@@ -511,7 +511,7 @@ static HRESULT install_init(LPCWSTR inf_filename, LPCWSTR install_sec,
}
/* release the install instance information */
static
void
install_release
(
ADVInfo
*
info
)
static
void
install_release
(
const
ADVInfo
*
info
)
{
if
(
info
->
hinf
&&
info
->
hinf
!=
INVALID_HANDLE_VALUE
)
SetupCloseInfFile
(
info
->
hinf
);
...
...
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