Use CONST UCHAR * instead of PCUCHAR (which is only defined in ntdef.h, not in winnt.h)

svn path=/trunk/; revision=64494
This commit is contained in:
Timo Kreuzer 2014-10-03 12:07:30 +00:00
parent 30c5b892c6
commit e854a2795e

View file

@ -50,7 +50,7 @@ CheckBuffer(
IN const VOID *Buffer,
...)
{
PCUCHAR OutBuffer = Buffer;
CONST UCHAR *OutBuffer = Buffer;
INT Count;
INT Value;
va_list Arguments;
@ -69,7 +69,7 @@ CheckBuffer(
if (*OutBuffer++ != Value)
{
--OutBuffer;
trace("CheckBuffer failed at offset %d, value %x, expected %x\n", OutBuffer - (PCUCHAR)Buffer, *OutBuffer, Value);
trace("CheckBuffer failed at offset %d, value %x, expected %x\n", OutBuffer - (CONST UCHAR*)Buffer, *OutBuffer, Value);
return FALSE;
}
}
@ -118,7 +118,7 @@ CheckPattern(
IN const VOID *Buffer,
...)
{
PCUCHAR OutBuffer = Buffer;
CONST UCHAR *OutBuffer = Buffer;
INT Count, Repeat, i;
INT Values[16];
va_list Arguments;
@ -143,7 +143,7 @@ CheckPattern(
if (*OutBuffer++ != Values[i])
{
--OutBuffer;
trace("CheckPattern failed at offset %d, value %x, expected %x\n", OutBuffer - (PCUCHAR)Buffer, *OutBuffer, Values[i]);
trace("CheckPattern failed at offset %d, value %x, expected %x\n", OutBuffer - (CONST UCHAR*)Buffer, *OutBuffer, Values[i]);
return FALSE;
}
}