[ROSTESTS]

Correct spelling and Co.

svn path=/trunk/; revision=58678
This commit is contained in:
Hermès Bélusca-Maïto 2013-04-04 19:47:42 +00:00
parent c45852fcfd
commit fed0b44fc6
2 changed files with 8 additions and 8 deletions

View file

@ -194,9 +194,9 @@ NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING Registry
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);

View file

@ -34,16 +34,16 @@ IoCheckEaBufferValidityROS(IN PFILE_FULL_EA_INFORMATION EaBuffer,
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)
{
@ -63,14 +63,14 @@ IoCheckEaBufferValidityROS(IN PFILE_FULL_EA_INFORMATION EaBuffer,
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)
{
@ -86,7 +86,7 @@ IoCheckEaBufferValidityROS(IN PFILE_FULL_EA_INFORMATION EaBuffer,
if (ErrorOffset != NULL)
{
/* calculate the error offset. Or in */
/* calculate the error offset. */
*ErrorOffset = (ULONG)((ULONG_PTR)EaBufferEnd - (ULONG_PTR)EaBuffer);
}