advapi32: Constify some variables
Andrew Talbot
andrew.talbot at talbotville.com
Sat Mar 21 03:19:32 CDT 2009
Changelog:
advapi32: Constify some variables.
diff --git a/dlls/advapi32/advapi.c b/dlls/advapi32/advapi.c
index 1be3a17..f45f722 100644
--- a/dlls/advapi32/advapi.c
+++ b/dlls/advapi32/advapi.c
@@ -274,7 +274,7 @@ BOOL WINAPI LogonUserW( LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPa
typedef UINT (WINAPI *fnMsiProvideComponentFromDescriptor)(LPCWSTR,LPWSTR,DWORD*,DWORD*);
-DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
+DWORD WINAPI CommandLineFromMsiDescriptor( const WCHAR *szDescriptor,
WCHAR *szCommandLine, DWORD *pcchCommandLine )
{
static const WCHAR szMsi[] = { 'm','s','i',0 };
diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c
index 0fb36e6..5c9e3b4 100644
--- a/dlls/advapi32/cred.c
+++ b/dlls/advapi32/cred.c
@@ -754,7 +754,7 @@ static BOOL credential_matches_filter(HKEY hkeyCred, LPCWSTR filter)
static DWORD registry_enumerate_credentials(HKEY hkeyMgr, LPCWSTR filter,
LPWSTR target_name,
- DWORD target_name_len, BYTE key_data[KEY_SIZE],
+ DWORD target_name_len, const BYTE key_data[KEY_SIZE],
PCREDENTIALW *credentials, char **buffer,
DWORD *len, DWORD *count)
{
diff --git a/dlls/advapi32/crypt.h b/dlls/advapi32/crypt.h
index 3d630da..d9018f4 100644
--- a/dlls/advapi32/crypt.h
+++ b/dlls/advapi32/crypt.h
@@ -93,6 +93,6 @@ struct ustring {
unsigned char *Buffer;
};
-NTSTATUS WINAPI SystemFunction032(struct ustring *data, struct ustring *key);
+NTSTATUS WINAPI SystemFunction032(struct ustring *data, const struct ustring *key);
#endif /* __WINE_CRYPT_H_ */
diff --git a/dlls/advapi32/crypt_arc4.c b/dlls/advapi32/crypt_arc4.c
index ebe4058..523cda2 100644
--- a/dlls/advapi32/crypt_arc4.c
+++ b/dlls/advapi32/crypt_arc4.c
@@ -94,7 +94,7 @@ static void arc4_ProcessString(arc4_info *a4i, BYTE *inoutString, unsigned int l
* NOTES
* see http://web.it.kth.se/~rom/ntsec.html#crypto-strongavail
*/
-NTSTATUS WINAPI SystemFunction032(struct ustring *data, struct ustring *key)
+NTSTATUS WINAPI SystemFunction032(struct ustring *data, const struct ustring *key)
{
arc4_info a4i;
diff --git a/dlls/advapi32/tests/crypt_lmhash.c b/dlls/advapi32/tests/crypt_lmhash.c
index 66ebe82..70cdf13 100644
--- a/dlls/advapi32/tests/crypt_lmhash.c
+++ b/dlls/advapi32/tests/crypt_lmhash.c
@@ -44,7 +44,7 @@ typedef NTSTATUS (WINAPI *fnSystemFunction008)(const BYTE *, const BYTE *, LPBYT
typedef NTSTATUS (WINAPI *fnSystemFunction009)(const BYTE *, const BYTE *, LPBYTE);
typedef int (WINAPI *descrypt)(unsigned char *, unsigned char *, unsigned char *);
typedef NTSTATUS (WINAPI *fnSystemFunction030)(void*, void*);
-typedef NTSTATUS (WINAPI *fnSystemFunction032)(struct ustring *, struct ustring *);
+typedef NTSTATUS (WINAPI *fnSystemFunction032)(struct ustring *, const struct ustring *);
fnSystemFunction001 pSystemFunction001;
fnSystemFunction002 pSystemFunction002;
diff --git a/include/appmgmt.h b/include/appmgmt.h
index 385f81a..528d9f4 100644
--- a/include/appmgmt.h
+++ b/include/appmgmt.h
@@ -44,7 +44,7 @@ typedef struct _MANAGEDAPPLICATION
extern "C" {
#endif
-DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR*,WCHAR*,DWORD*);
+DWORD WINAPI CommandLineFromMsiDescriptor(const WCHAR*,WCHAR*,DWORD*);
DWORD WINAPI GetManagedApplications(GUID*,DWORD,DWORD,LPDWORD,PMANAGEDAPPLICATION*);
#ifdef __cplusplus
More information about the wine-patches
mailing list