CsqAcquireLock, CsqReleaseLock, CsqCompleteCancelledIrp);
if(Status != STATUS_SUCCESS)
- KdPrint(("csqtest: IoCsqInitalize failed: 0x%x\n", Status));
+ KdPrint(("csqtest: IoCsqInitialize failed: 0x%x\n", Status));
else
- KdPrint(("csqtest: IoCsqInitalize succeeded\n"));
+ KdPrint(("csqtest: IoCsqInitialize succeeded\n"));
InitializeListHead(&IrpQueue);
KeInitializeSpinLock(&IrpQueueLock);
ULONG NextEaBufferOffset;
UINT IntEaLength;
- /* Length of the rest. Inital equal to EaLength */
+ /* Length of the rest. Initialize it to EaLength */
IntEaLength = EaLength;
- /* Inital EaBuffer equal to EaBuffer */
+ /* Initialize EaBuffer to EaBuffer */
EaBufferEnd = EaBuffer;
/* The rest length of the buffer */
/* 8 = sizeof(ULONG) + sizeof(UCHAR) + sizeof(UCHAR) + sizeof(USHORT) */
while (IntEaLength >= 8)
{
- /* rest of buffer must greater then the sizeof(FILE_FULL_EA_INFORMATION) + buffer */
+ /* The rest of the buffer must be greater than sizeof(FILE_FULL_EA_INFORMATION) + buffer */
NextEaBufferOffset = EaBufferEnd->EaNameLength+EaBufferEnd->EaValueLength + 9;
if (IntEaLength >= NextEaBufferOffset)
{
else
{
/*
- From the MSDN (http://msdn2.microsoft.com/en-us/library/ms795740.aspx).
+ From MSDN (http://msdn2.microsoft.com/en-us/library/ms795740.aspx).
For all entries except the last, the value of NextEntryOffset must be greater
than zero and must fall on a ULONG boundary.
*/
NextEaBufferOffset = ((NextEaBufferOffset + 3) & 0xFFFFFFFC);
if ((EaBufferEnd->NextEntryOffset == NextEaBufferOffset) && (EaBufferEnd->NextEntryOffset>0))
{
- /* rest of buffer must be greater then the next offset */
+ /* The rest of the buffer must be greater than the next offset */
IntEaLength = IntEaLength - EaBufferEnd->NextEntryOffset;
if (IntEaLength>=0)
{
if (ErrorOffset != NULL)
{
- /* calculate the error offset. Or in */
+ /* calculate the error offset. */
*ErrorOffset = (ULONG)((ULONG_PTR)EaBufferEnd - (ULONG_PTR)EaBuffer);
}