advapi32: Constify a parameter.

This commit is contained in:
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 * Nothing
*/ */
VOID WINAPI VOID WINAPI
A_SHAUpdate(PSHA_CTX Context, PCHAR Buffer, UINT BufferSize) A_SHAUpdate(PSHA_CTX Context, const unsigned char *Buffer, UINT BufferSize)
{ {
ULONG BufferContentSize; ULONG BufferContentSize;
@ -199,7 +199,7 @@ A_SHAFinal(PSHA_CTX Context, PULONG Result)
Count = (ULONG*)(Buffer + Pad); Count = (ULONG*)(Buffer + Pad);
Count[0] = DWORD2BE(LengthHi); Count[0] = DWORD2BE(LengthHi);
Count[1] = DWORD2BE(LengthLo); Count[1] = DWORD2BE(LengthLo);
A_SHAUpdate(Context, (PCHAR)Buffer, Pad + 8); A_SHAUpdate(Context, Buffer, Pad + 8);
for (Index = 0; Index < 5; Index++) for (Index = 0; Index < 5; Index++)
Result[Index] = DWORD2BE(Context->State[Index]); Result[Index] = DWORD2BE(Context->State[Index]);