Commit 982a6a5a authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

advpack: Constify some variables.

parent dea58c01
......@@ -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(LPSTR szFile, LPSTR szFileList)
static BOOL file_in_list(LPCSTR szFile, LPCSTR 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, LPCSTR szFileList)
{
DWORD dwNumFound = 0;
struct ExtractFileList *pNode;
......
......@@ -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(LPCWSTR 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;
......
......@@ -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, LPCWSTR ini_path)
{
WCHAR mod_path[MAX_PATH + 2];
WCHAR sys_mod_path[MAX_PATH + 2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment