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
982a6a5a
Commit
982a6a5a
authored
Mar 12, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Constify some variables.
parent
dea58c01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
files.c
dlls/advpack/files.c
+2
-2
install.c
dlls/advpack/install.c
+2
-2
reg.c
dlls/advpack/reg.c
+2
-2
No files found.
dlls/advpack/files.c
View file @
982a6a5a
...
...
@@ -603,7 +603,7 @@ static void free_file_node(struct ExtractFileList *pNode)
}
/* determines whether szFile is in the NULL-separated szFileList */
static
BOOL
file_in_list
(
LP
STR
szFile
,
LP
STR
szFileList
)
static
BOOL
file_in_list
(
LP
CSTR
szFile
,
LPC
STR
szFileList
)
{
DWORD
dwLen
=
lstrlenA
(
szFile
);
DWORD
dwTestLen
;
...
...
@@ -627,7 +627,7 @@ static BOOL file_in_list(LPSTR szFile, LPSTR szFileList)
/* removes nodes from the linked list that aren't specified in szFileList
* returns the number of files that are in both the linked list and szFileList
*/
static
DWORD
fill_file_list
(
EXTRACTdest
*
extractDest
,
LPCSTR
szCabName
,
LPSTR
szFileList
)
static
DWORD
fill_file_list
(
EXTRACTdest
*
extractDest
,
LPCSTR
szCabName
,
LP
C
STR
szFileList
)
{
DWORD
dwNumFound
=
0
;
struct
ExtractFileList
*
pNode
;
...
...
dlls/advpack/install.c
View file @
982a6a5a
...
...
@@ -214,7 +214,7 @@ LPWSTR get_parameter(LPWSTR *params, WCHAR separator)
return
token
;
}
static
BOOL
is_full_path
(
LPWSTR
path
)
static
BOOL
is_full_path
(
LP
C
WSTR
path
)
{
const
int
MIN_PATH_LEN
=
3
;
...
...
@@ -229,7 +229,7 @@ static BOOL is_full_path(LPWSTR path)
/* retrieves the contents of a field, dynamically growing the buffer if necessary */
static
WCHAR
*
get_field_string
(
INFCONTEXT
*
context
,
DWORD
index
,
WCHAR
*
buffer
,
WCHAR
*
static_buffer
,
DWORD
*
size
)
const
WCHAR
*
static_buffer
,
DWORD
*
size
)
{
DWORD
required
;
...
...
dlls/advpack/reg.c
View file @
982a6a5a
...
...
@@ -98,7 +98,7 @@ error:
return
FALSE
;
}
static
void
strentry_atow
(
STRENTRYA
*
aentry
,
STRENTRYW
*
wentry
)
static
void
strentry_atow
(
const
STRENTRYA
*
aentry
,
STRENTRYW
*
wentry
)
{
DWORD
name_len
,
val_len
;
...
...
@@ -171,7 +171,7 @@ HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTa
return
hr
;
}
static
HRESULT
write_predefined_strings
(
HMODULE
hm
,
LPWSTR
ini_path
)
static
HRESULT
write_predefined_strings
(
HMODULE
hm
,
LP
C
WSTR
ini_path
)
{
WCHAR
mod_path
[
MAX_PATH
+
2
];
WCHAR
sys_mod_path
[
MAX_PATH
+
2
];
...
...
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