advpack: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-03-12 20:49:29 +00:00 committed by Alexandre Julliard
parent dea58c017d
commit 982a6a5a60
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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];