mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[DBGHELP][NDK][RTL] *RtlComputeCrc32(): Add 'const' to 2nd parameter (#6973)
and sync SAL2 annotations.
It didn't always warn in the past, our gutfeeling (we have *not* double-checked that thesis!) is that the warnings might have been triggered when 0.4.15-dev-958-g 237aa3a9c1
was committed
This commit is contained in:
parent
1cd08eee52
commit
01fbf25dab
4 changed files with 6 additions and 6 deletions
|
@ -498,7 +498,7 @@ static const ULONG CrcTable[256] =
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
__RtlComputeCrc32(ULONG Initial, PUCHAR Data, ULONG Length)
|
__RtlComputeCrc32(ULONG Initial, const UCHAR *Data, ULONG Length)
|
||||||
{
|
{
|
||||||
ULONG CrcValue = ~Initial;
|
ULONG CrcValue = ~Initial;
|
||||||
|
|
||||||
|
|
|
@ -818,7 +818,7 @@ typedef LONG KPRIORITY;
|
||||||
PIMAGE_NT_HEADERS __RtlImageNtHeader(void *data);
|
PIMAGE_NT_HEADERS __RtlImageNtHeader(void *data);
|
||||||
PVOID __RtlImageRvaToVa (const IMAGE_NT_HEADERS* NtHeader, PVOID BaseAddress, ULONG Rva, PIMAGE_SECTION_HEADER *SectionHeader);
|
PVOID __RtlImageRvaToVa (const IMAGE_NT_HEADERS* NtHeader, PVOID BaseAddress, ULONG Rva, PIMAGE_SECTION_HEADER *SectionHeader);
|
||||||
PVOID __RtlImageDirectoryEntryToData(PVOID BaseAddress, BOOLEAN MappedAsImage, USHORT Directory, PULONG Size);
|
PVOID __RtlImageDirectoryEntryToData(PVOID BaseAddress, BOOLEAN MappedAsImage, USHORT Directory, PULONG Size);
|
||||||
ULONG __RtlComputeCrc32(ULONG Initial, PUCHAR Data, ULONG Length);
|
ULONG __RtlComputeCrc32(ULONG Initial, const UCHAR *Data, ULONG Length);
|
||||||
|
|
||||||
typedef struct _CLIENT_ID
|
typedef struct _CLIENT_ID
|
||||||
{
|
{
|
||||||
|
|
|
@ -4436,7 +4436,7 @@ ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlComputeCrc32(
|
RtlComputeCrc32(
|
||||||
_In_ ULONG InitialCrc,
|
_In_ ULONG InitialCrc,
|
||||||
_In_ PUCHAR Buffer,
|
_In_ const UCHAR *Buffer,
|
||||||
_In_ ULONG Length
|
_In_ ULONG Length
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -86,9 +86,9 @@ static const ULONG CrcTable[256] =
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
ULONG NTAPI
|
ULONG NTAPI
|
||||||
RtlComputeCrc32(IN ULONG Initial,
|
RtlComputeCrc32(_In_ ULONG Initial,
|
||||||
IN PUCHAR Data,
|
_In_ const UCHAR *Data,
|
||||||
IN ULONG Length)
|
_In_ ULONG Length)
|
||||||
{
|
{
|
||||||
ULONG CrcValue = ~Initial;
|
ULONG CrcValue = ~Initial;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue