cryptui: Constify a variable

Andrew Talbot andrew.talbot at talbotville.com
Mon Aug 23 16:23:10 CDT 2010


Changelog:
    cryptui: Constify a variable.

diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index a95a7a4..aeb21fa 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -2605,7 +2605,7 @@ static WCHAR *field_format_version(PCCERT_CONTEXT cert)
     return buf;
 }
 
-static WCHAR *format_hex_string(void *pb, DWORD cb)
+static WCHAR *format_hex_string(const void *pb, DWORD cb)
 {
     WCHAR *buf = HeapAlloc(GetProcessHeap(), 0, (cb * 3 + 1) * sizeof(WCHAR));
 
@@ -2616,7 +2616,7 @@ static WCHAR *format_hex_string(void *pb, DWORD cb)
         WCHAR *ptr;
 
         for (i = 0, ptr = buf; i < cb; i++, ptr += 3)
-            sprintfW(ptr, fmt, ((BYTE *)pb)[i]);
+            sprintfW(ptr, fmt, ((const BYTE *)pb)[i]);
     }
     return buf;
 }



More information about the wine-patches mailing list