advapi32: Constify a parameter.

oldstable
Andrew Talbot 2006-11-11 16:01:01 +00:00 committed by Alexandre Julliard
parent fcb5bc6a1f
commit ac28398d12
1 changed files with 2 additions and 2 deletions

View File

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