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);
}