[REACTOS]

Fix spelling of 'length' in various places.
Patch by andygui

Concerning kdio.c, we can see that the original author didn't see his misspelling since he used two different variables named:
KdpScreenLineLength and KdpScreenLineLenght ! ; the latter being renamed here KdpScreenLineLengthDefault to make the difference.

CORE-7043 #comment Part for ReactOS committed in r58672, thanks!

svn path=/trunk/; revision=58672
This commit is contained in:
Hermès Bélusca-Maïto 2013-04-04 19:29:36 +00:00
parent b15a7e9255
commit 26895da7e6
19 changed files with 25 additions and 25 deletions

View file

@ -444,7 +444,7 @@ BEGIN
IDS_CONV_CONSUMPTION "Consumption (engines)"
IDS_CONV_CURRENCY "Συνάλλαγμα"
IDS_CONV_ENERGY "Ενέργεια"
IDS_CONV_LENGTH "Lenghts"
IDS_CONV_LENGTH "Lengths"
IDS_CONV_POWER "Δύναμη"
IDS_CONV_PRESSURE "Πίεση"
IDS_CONV_TEMPERATURE "Θερμοκρασία"

View file

@ -448,7 +448,7 @@ BEGIN
IDS_CONV_CONSUMPTION "Consumption (engines)"
IDS_CONV_CURRENCY "Currencies"
IDS_CONV_ENERGY "Energy"
IDS_CONV_LENGTH "Lenghts"
IDS_CONV_LENGTH "Lengths"
IDS_CONV_POWER "Power"
IDS_CONV_PRESSURE "Pressure"
IDS_CONV_TEMPERATURE "Temperature"

View file

@ -449,7 +449,7 @@ BEGIN
IDS_CONV_CONSUMPTION "Consumption (engines)"
IDS_CONV_CURRENCY "Currencies"
IDS_CONV_ENERGY "Energy"
IDS_CONV_LENGTH "Lenghts"
IDS_CONV_LENGTH "Lengths"
IDS_CONV_POWER "Power"
IDS_CONV_PRESSURE "Pressure"
IDS_CONV_TEMPERATURE "Temperature"

View file

@ -118,7 +118,7 @@ audio_resampler_acm::open( void )
//
// Calcs source buffer lenght
// Calcs source buffer length
//
src_buflen = ( unsigned int )
@ -130,7 +130,7 @@ audio_resampler_acm::open( void )
//
// Calcs destination source buffer lenght
// Calcs destination source buffer length
// with help of ACM apis
//

View file

@ -229,7 +229,7 @@ class audio_wavein
//
// Set seconds lenght for each
// Set seconds length for each
// buffer.
//

View file

@ -45,7 +45,7 @@ END
STRINGTABLE
BEGIN
IDS_STRPOS "Position: %.2f s"//FIXME
IDS_STRDUR "Lenght: %.2f s"
IDS_STRDUR "Length: %.2f s"
IDS_STRBUF "Buffer: %.2f kb"
IDS_STRFMT "%.1f kHz %u bits"
IDS_STRMONO "mono"

View file

@ -45,7 +45,7 @@ END
STRINGTABLE
BEGIN
IDS_STRPOS "Position: %.2f s"
IDS_STRDUR "Lenght: %.2f s"
IDS_STRDUR "Length: %.2f s"
IDS_STRBUF "Buffer: %.2f kb"
IDS_STRFMT "%.1f kHz %u bits"
IDS_STRMONO "mono"

View file

@ -45,7 +45,7 @@ END
STRINGTABLE
BEGIN
IDS_STRPOS "Position: %.2f s"//FIXME
IDS_STRDUR "Lenght: %.2f s"
IDS_STRDUR "Length: %.2f s"
IDS_STRBUF "Buffer: %.2f kb"
IDS_STRFMT "%.1f kHz %u bits"
IDS_STRMONO "mono"

View file

@ -983,7 +983,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer)
/* Check the size of the record as the record adding may be larger */
if (OverWriteLength >= BufSize)
{
DPRINT("Record will fit. Lenght %d, BufSize %d\n", OverWriteLength, BufSize);
DPRINT("Record will fit. Length %d, BufSize %d\n", OverWriteLength, BufSize);
LogFile->Header.StartOffset = LogfOffsetByNumber(LogFile, LogFile->Header.OldestRecordNumber);
break;
}

View file

@ -43,7 +43,7 @@
#define EXT2_MAGIC 0xEF53
/* Amount of indirect blocks in an inode. */
#define INDIRECT_BLOCKS 12
/* Maximum lenght of a pathname. */
/* Maximum length of a pathname. */
#define EXT2_PATH_MAX 4096
/* Maximum nesting of symlinks, used to prevent a loop. */
#define EXT2_MAX_SYMLINKCNT 8

View file

@ -1437,7 +1437,7 @@ Quickie:
RtlFreeHeap(RtlGetProcessHeap(), 0, PathString.Buffer);
}
/* Return the final result lenght */
/* Return the final result length */
return Result;
}

View file

@ -12,7 +12,7 @@
static BOOLEAN NTAPI
VfatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
IN PLARGE_INTEGER FileOffset,
IN ULONG Lenght,
IN ULONG Length,
IN BOOLEAN Wait,
IN ULONG LockKey,
IN BOOLEAN CheckForReadOperation,

View file

@ -17,7 +17,7 @@ BOOLEAN
NTAPI
FatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
IN PLARGE_INTEGER FileOffset,
IN ULONG Lenght,
IN ULONG Length,
IN BOOLEAN Wait,
IN ULONG LockKey,
IN BOOLEAN CheckForReadOperation,

View file

@ -1029,7 +1029,7 @@ ZwUnlockFile(
_In_ HANDLE FileHandle,
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
_In_ PLARGE_INTEGER ByteOffset,
_In_ PLARGE_INTEGER Lenght,
_In_ PLARGE_INTEGER Length,
_In_opt_ ULONG Key
);

View file

@ -313,7 +313,7 @@ snmp_authfail_trap(void)
*
* @param vb_len varbind-list length
* @param rhl points to returned header lengths
* @return the required lenght for encoding the response header
* @return the required length for encoding the response header
*/
static u16_t
snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len)
@ -360,7 +360,7 @@ snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len)
*
* @param vb_len varbind-list length
* @param thl points to returned header lengths
* @return the required lenght for encoding the trap header
* @return the required length for encoding the trap header
*/
static u16_t
snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len)
@ -415,7 +415,7 @@ snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len)
* annotates lengths in varbind for second encoding pass.
*
* @param root points to the root of the variable binding list
* @return the required lenght for encoding the variable bindings
* @return the required length for encoding the variable bindings
*/
static u16_t
snmp_varbind_list_sum(struct snmp_varbind_root *root)
@ -429,7 +429,7 @@ snmp_varbind_list_sum(struct snmp_varbind_root *root)
vb = root->tail;
while ( vb != NULL )
{
/* encoded value lenght depends on type */
/* encoded value length depends on type */
switch (vb->value_type)
{
case (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG):

View file

@ -1382,7 +1382,7 @@ tcp_receive(struct tcp_pcb *pcb)
}
break;
} else {
/* Either the lenghts are the same or the incoming
/* Either the lengths are the same or the incoming
segment was smaller than the old one; in either
case, we ditch the incoming segment. */
break;

View file

@ -171,7 +171,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
PAGED_CODE();
/* Lenght of the rest. Inital equal to EaLength */
/* Length of the rest. Inital equal to EaLength */
IntEaLength = EaLength;
/* Inital EaBuffer equal to EaBuffer */

View file

@ -156,7 +156,7 @@ PnpRegMultiSzToUnicodeStrings(IN PKEY_VALUE_FULL_INFORMATION KeyValueInformation
/* Null-terminate the string ourselves */
(*UnicodeStringList)[i].Buffer[n / sizeof(WCHAR)] = UNICODE_NULL;
/* Set the lenghts */
/* Set the lengths */
(*UnicodeStringList)[i].Length = (USHORT)n;
(*UnicodeStringList)[i].MaximumLength = (USHORT)(n + sizeof(UNICODE_NULL));
}

View file

@ -31,8 +31,8 @@ KD_PORT_INFORMATION SerialPortInfo = { DEFAULT_DEBUG_PORT, DEFAULT_DEBUG_BAUD_RA
/* Current Port in use. FIXME: Do we support more then one? */
ULONG KdpPort;
#define KdpScreenLineLenght 80
CHAR KdpScreenLineBuffer[KdpScreenLineLenght + 1] = "";
#define KdpScreenLineLengthDefault 80
CHAR KdpScreenLineBuffer[KdpScreenLineLengthDefault + 1] = "";
ULONG KdpScreenLineBufferPos = 0, KdpScreenLineLength = 0;
const ULONG KdpDmesgBufferSize = 128 * 1024; // 512*1024; // 5*1024*1024;
@ -427,7 +427,7 @@ KdpScreenPrint(LPSTR Message,
KdpScreenLineBuffer[KdpScreenLineLength] = '\0';
}
if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLenght)
if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLengthDefault)
{
/* Print buffered characters */
if(KdpScreenLineBufferPos != KdpScreenLineLength)