Andrew Talbot : crypt32: Constify some variables.

Alexandre Julliard julliard at winehq.org
Fri Aug 20 10:19:13 CDT 2010


Module: wine
Branch: master
Commit: 4bdeb7dcb3d32726f044fb23316334babc2db079
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4bdeb7dcb3d32726f044fb23316334babc2db079

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Thu Aug 19 22:35:15 2010 +0100

crypt32: Constify some variables.

---

 dlls/crypt32/object.c |    6 +++---
 dlls/crypt32/str.c    |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/crypt32/object.c b/dlls/crypt32/object.c
index b3f8293..378ce51 100644
--- a/dlls/crypt32/object.c
+++ b/dlls/crypt32/object.c
@@ -1170,7 +1170,7 @@ static const WCHAR indent[] = { ' ',' ',' ',' ',' ',0 };
 static const WCHAR colonCrlf[] = { ':','\r','\n',0 };
 
 static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
- CERT_ALT_NAME_ENTRY *entry, LPWSTR str, DWORD *pcbStr)
+ const CERT_ALT_NAME_ENTRY *entry, LPWSTR str, DWORD *pcbStr)
 {
     BOOL ret;
     WCHAR buf[MAX_STRING_RESOURCE_LEN];
@@ -1354,7 +1354,7 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
 }
 
 static BOOL CRYPT_FormatAltNameInfo(DWORD dwFormatStrType, DWORD indentLevel,
- CERT_ALT_NAME_INFO *name, LPWSTR str, DWORD *pcbStr)
+ const CERT_ALT_NAME_INFO *name, LPWSTR str, DWORD *pcbStr)
 {
     DWORD i, size, bytesNeeded = 0;
     BOOL ret = TRUE;
@@ -1437,7 +1437,7 @@ static BOOL WINAPI CRYPT_FormatAltName(DWORD dwCertEncodingType,
 }
 
 static BOOL CRYPT_FormatCertIssuer(DWORD dwFormatStrType,
- CERT_ALT_NAME_INFO *issuer, LPWSTR str, DWORD *pcbStr)
+ const CERT_ALT_NAME_INFO *issuer, LPWSTR str, DWORD *pcbStr)
 {
     WCHAR buf[MAX_STRING_RESOURCE_LEN];
     DWORD bytesNeeded, sepLen;
diff --git a/dlls/crypt32/str.c b/dlls/crypt32/str.c
index 758abc9..914ccaa 100644
--- a/dlls/crypt32/str.c
+++ b/dlls/crypt32/str.c
@@ -970,7 +970,7 @@ static PCERT_ALT_NAME_ENTRY cert_find_alt_name_entry(PCCERT_CONTEXT cert,
 }
 
 static DWORD cert_get_name_from_rdn_attr(DWORD encodingType,
- PCERT_NAME_BLOB name, LPCSTR oid, LPWSTR pszNameString, DWORD cchNameString)
+ const CERT_NAME_BLOB *name, LPCSTR oid, LPWSTR pszNameString, DWORD cchNameString)
 {
     CERT_NAME_INFO *nameInfo;
     DWORD bytes = 0, ret = 0;




More information about the wine-cvs mailing list