From ac28398d12b33b091818c6422a4a950828af3d67 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 11 Nov 2006 16:01:01 +0000 Subject: [PATCH] advapi32: Constify a parameter. --- dlls/advapi32/crypt_sha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/crypt_sha.c b/dlls/advapi32/crypt_sha.c index 435c67e3fab..ffd59a7869a 100644 --- a/dlls/advapi32/crypt_sha.c +++ b/dlls/advapi32/crypt_sha.c @@ -135,7 +135,7 @@ A_SHAInit(PSHA_CTX Context) * Nothing */ VOID WINAPI -A_SHAUpdate(PSHA_CTX Context, PCHAR Buffer, UINT BufferSize) +A_SHAUpdate(PSHA_CTX Context, const unsigned char *Buffer, UINT BufferSize) { ULONG BufferContentSize; @@ -199,7 +199,7 @@ A_SHAFinal(PSHA_CTX Context, PULONG Result) Count = (ULONG*)(Buffer + Pad); Count[0] = DWORD2BE(LengthHi); Count[1] = DWORD2BE(LengthLo); - A_SHAUpdate(Context, (PCHAR)Buffer, Pad + 8); + A_SHAUpdate(Context, Buffer, Pad + 8); for (Index = 0; Index < 5; Index++) Result[Index] = DWORD2BE(Context->State[Index]);