mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 21:18:30 +00:00
[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:
parent
b15a7e9255
commit
26895da7e6
19 changed files with 25 additions and 25 deletions
|
@ -444,7 +444,7 @@ BEGIN
|
||||||
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
||||||
IDS_CONV_CURRENCY "Συνάλλαγμα"
|
IDS_CONV_CURRENCY "Συνάλλαγμα"
|
||||||
IDS_CONV_ENERGY "Ενέργεια"
|
IDS_CONV_ENERGY "Ενέργεια"
|
||||||
IDS_CONV_LENGTH "Lenghts"
|
IDS_CONV_LENGTH "Lengths"
|
||||||
IDS_CONV_POWER "Δύναμη"
|
IDS_CONV_POWER "Δύναμη"
|
||||||
IDS_CONV_PRESSURE "Πίεση"
|
IDS_CONV_PRESSURE "Πίεση"
|
||||||
IDS_CONV_TEMPERATURE "Θερμοκρασία"
|
IDS_CONV_TEMPERATURE "Θερμοκρασία"
|
||||||
|
|
|
@ -448,7 +448,7 @@ BEGIN
|
||||||
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
||||||
IDS_CONV_CURRENCY "Currencies"
|
IDS_CONV_CURRENCY "Currencies"
|
||||||
IDS_CONV_ENERGY "Energy"
|
IDS_CONV_ENERGY "Energy"
|
||||||
IDS_CONV_LENGTH "Lenghts"
|
IDS_CONV_LENGTH "Lengths"
|
||||||
IDS_CONV_POWER "Power"
|
IDS_CONV_POWER "Power"
|
||||||
IDS_CONV_PRESSURE "Pressure"
|
IDS_CONV_PRESSURE "Pressure"
|
||||||
IDS_CONV_TEMPERATURE "Temperature"
|
IDS_CONV_TEMPERATURE "Temperature"
|
||||||
|
|
|
@ -449,7 +449,7 @@ BEGIN
|
||||||
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
IDS_CONV_CONSUMPTION "Consumption (engines)"
|
||||||
IDS_CONV_CURRENCY "Currencies"
|
IDS_CONV_CURRENCY "Currencies"
|
||||||
IDS_CONV_ENERGY "Energy"
|
IDS_CONV_ENERGY "Energy"
|
||||||
IDS_CONV_LENGTH "Lenghts"
|
IDS_CONV_LENGTH "Lengths"
|
||||||
IDS_CONV_POWER "Power"
|
IDS_CONV_POWER "Power"
|
||||||
IDS_CONV_PRESSURE "Pressure"
|
IDS_CONV_PRESSURE "Pressure"
|
||||||
IDS_CONV_TEMPERATURE "Temperature"
|
IDS_CONV_TEMPERATURE "Temperature"
|
||||||
|
|
|
@ -118,7 +118,7 @@ audio_resampler_acm::open( void )
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Calcs source buffer lenght
|
// Calcs source buffer length
|
||||||
//
|
//
|
||||||
|
|
||||||
src_buflen = ( unsigned int )
|
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
|
// with help of ACM apis
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ class audio_wavein
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set seconds lenght for each
|
// Set seconds length for each
|
||||||
// buffer.
|
// buffer.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ END
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_STRPOS "Position: %.2f s"//FIXME
|
IDS_STRPOS "Position: %.2f s"//FIXME
|
||||||
IDS_STRDUR "Lenght: %.2f s"
|
IDS_STRDUR "Length: %.2f s"
|
||||||
IDS_STRBUF "Buffer: %.2f kb"
|
IDS_STRBUF "Buffer: %.2f kb"
|
||||||
IDS_STRFMT "%.1f kHz %u bits"
|
IDS_STRFMT "%.1f kHz %u bits"
|
||||||
IDS_STRMONO "mono"
|
IDS_STRMONO "mono"
|
||||||
|
|
|
@ -45,7 +45,7 @@ END
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_STRPOS "Position: %.2f s"
|
IDS_STRPOS "Position: %.2f s"
|
||||||
IDS_STRDUR "Lenght: %.2f s"
|
IDS_STRDUR "Length: %.2f s"
|
||||||
IDS_STRBUF "Buffer: %.2f kb"
|
IDS_STRBUF "Buffer: %.2f kb"
|
||||||
IDS_STRFMT "%.1f kHz %u bits"
|
IDS_STRFMT "%.1f kHz %u bits"
|
||||||
IDS_STRMONO "mono"
|
IDS_STRMONO "mono"
|
||||||
|
|
|
@ -45,7 +45,7 @@ END
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_STRPOS "Position: %.2f s"//FIXME
|
IDS_STRPOS "Position: %.2f s"//FIXME
|
||||||
IDS_STRDUR "Lenght: %.2f s"
|
IDS_STRDUR "Length: %.2f s"
|
||||||
IDS_STRBUF "Buffer: %.2f kb"
|
IDS_STRBUF "Buffer: %.2f kb"
|
||||||
IDS_STRFMT "%.1f kHz %u bits"
|
IDS_STRFMT "%.1f kHz %u bits"
|
||||||
IDS_STRMONO "mono"
|
IDS_STRMONO "mono"
|
||||||
|
|
|
@ -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 */
|
/* Check the size of the record as the record adding may be larger */
|
||||||
if (OverWriteLength >= BufSize)
|
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);
|
LogFile->Header.StartOffset = LogfOffsetByNumber(LogFile, LogFile->Header.OldestRecordNumber);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#define EXT2_MAGIC 0xEF53
|
#define EXT2_MAGIC 0xEF53
|
||||||
/* Amount of indirect blocks in an inode. */
|
/* Amount of indirect blocks in an inode. */
|
||||||
#define INDIRECT_BLOCKS 12
|
#define INDIRECT_BLOCKS 12
|
||||||
/* Maximum lenght of a pathname. */
|
/* Maximum length of a pathname. */
|
||||||
#define EXT2_PATH_MAX 4096
|
#define EXT2_PATH_MAX 4096
|
||||||
/* Maximum nesting of symlinks, used to prevent a loop. */
|
/* Maximum nesting of symlinks, used to prevent a loop. */
|
||||||
#define EXT2_MAX_SYMLINKCNT 8
|
#define EXT2_MAX_SYMLINKCNT 8
|
||||||
|
|
|
@ -1437,7 +1437,7 @@ Quickie:
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, PathString.Buffer);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, PathString.Buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the final result lenght */
|
/* Return the final result length */
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
static BOOLEAN NTAPI
|
static BOOLEAN NTAPI
|
||||||
VfatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
|
VfatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
|
||||||
IN PLARGE_INTEGER FileOffset,
|
IN PLARGE_INTEGER FileOffset,
|
||||||
IN ULONG Lenght,
|
IN ULONG Length,
|
||||||
IN BOOLEAN Wait,
|
IN BOOLEAN Wait,
|
||||||
IN ULONG LockKey,
|
IN ULONG LockKey,
|
||||||
IN BOOLEAN CheckForReadOperation,
|
IN BOOLEAN CheckForReadOperation,
|
||||||
|
|
|
@ -17,7 +17,7 @@ BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
FatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
|
FatFastIoCheckIfPossible(IN PFILE_OBJECT FileObject,
|
||||||
IN PLARGE_INTEGER FileOffset,
|
IN PLARGE_INTEGER FileOffset,
|
||||||
IN ULONG Lenght,
|
IN ULONG Length,
|
||||||
IN BOOLEAN Wait,
|
IN BOOLEAN Wait,
|
||||||
IN ULONG LockKey,
|
IN ULONG LockKey,
|
||||||
IN BOOLEAN CheckForReadOperation,
|
IN BOOLEAN CheckForReadOperation,
|
||||||
|
|
|
@ -1029,7 +1029,7 @@ ZwUnlockFile(
|
||||||
_In_ HANDLE FileHandle,
|
_In_ HANDLE FileHandle,
|
||||||
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
||||||
_In_ PLARGE_INTEGER ByteOffset,
|
_In_ PLARGE_INTEGER ByteOffset,
|
||||||
_In_ PLARGE_INTEGER Lenght,
|
_In_ PLARGE_INTEGER Length,
|
||||||
_In_opt_ ULONG Key
|
_In_opt_ ULONG Key
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@ snmp_authfail_trap(void)
|
||||||
*
|
*
|
||||||
* @param vb_len varbind-list length
|
* @param vb_len varbind-list length
|
||||||
* @param rhl points to returned header lengths
|
* @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
|
static u16_t
|
||||||
snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len)
|
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 vb_len varbind-list length
|
||||||
* @param thl points to returned header lengths
|
* @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
|
static u16_t
|
||||||
snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len)
|
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.
|
* annotates lengths in varbind for second encoding pass.
|
||||||
*
|
*
|
||||||
* @param root points to the root of the variable binding list
|
* @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
|
static u16_t
|
||||||
snmp_varbind_list_sum(struct snmp_varbind_root *root)
|
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;
|
vb = root->tail;
|
||||||
while ( vb != NULL )
|
while ( vb != NULL )
|
||||||
{
|
{
|
||||||
/* encoded value lenght depends on type */
|
/* encoded value length depends on type */
|
||||||
switch (vb->value_type)
|
switch (vb->value_type)
|
||||||
{
|
{
|
||||||
case (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG):
|
case (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG):
|
||||||
|
|
|
@ -1382,7 +1382,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} 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
|
segment was smaller than the old one; in either
|
||||||
case, we ditch the incoming segment. */
|
case, we ditch the incoming segment. */
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -171,7 +171,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Lenght of the rest. Inital equal to EaLength */
|
/* Length of the rest. Inital equal to EaLength */
|
||||||
IntEaLength = EaLength;
|
IntEaLength = EaLength;
|
||||||
|
|
||||||
/* Inital EaBuffer equal to EaBuffer */
|
/* Inital EaBuffer equal to EaBuffer */
|
||||||
|
|
|
@ -156,7 +156,7 @@ PnpRegMultiSzToUnicodeStrings(IN PKEY_VALUE_FULL_INFORMATION KeyValueInformation
|
||||||
/* Null-terminate the string ourselves */
|
/* Null-terminate the string ourselves */
|
||||||
(*UnicodeStringList)[i].Buffer[n / sizeof(WCHAR)] = UNICODE_NULL;
|
(*UnicodeStringList)[i].Buffer[n / sizeof(WCHAR)] = UNICODE_NULL;
|
||||||
|
|
||||||
/* Set the lenghts */
|
/* Set the lengths */
|
||||||
(*UnicodeStringList)[i].Length = (USHORT)n;
|
(*UnicodeStringList)[i].Length = (USHORT)n;
|
||||||
(*UnicodeStringList)[i].MaximumLength = (USHORT)(n + sizeof(UNICODE_NULL));
|
(*UnicodeStringList)[i].MaximumLength = (USHORT)(n + sizeof(UNICODE_NULL));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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? */
|
/* Current Port in use. FIXME: Do we support more then one? */
|
||||||
ULONG KdpPort;
|
ULONG KdpPort;
|
||||||
|
|
||||||
#define KdpScreenLineLenght 80
|
#define KdpScreenLineLengthDefault 80
|
||||||
CHAR KdpScreenLineBuffer[KdpScreenLineLenght + 1] = "";
|
CHAR KdpScreenLineBuffer[KdpScreenLineLengthDefault + 1] = "";
|
||||||
ULONG KdpScreenLineBufferPos = 0, KdpScreenLineLength = 0;
|
ULONG KdpScreenLineBufferPos = 0, KdpScreenLineLength = 0;
|
||||||
|
|
||||||
const ULONG KdpDmesgBufferSize = 128 * 1024; // 512*1024; // 5*1024*1024;
|
const ULONG KdpDmesgBufferSize = 128 * 1024; // 512*1024; // 5*1024*1024;
|
||||||
|
@ -427,7 +427,7 @@ KdpScreenPrint(LPSTR Message,
|
||||||
KdpScreenLineBuffer[KdpScreenLineLength] = '\0';
|
KdpScreenLineBuffer[KdpScreenLineLength] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLenght)
|
if(*pch == '\n' || KdpScreenLineLength == KdpScreenLineLengthDefault)
|
||||||
{
|
{
|
||||||
/* Print buffered characters */
|
/* Print buffered characters */
|
||||||
if(KdpScreenLineBufferPos != KdpScreenLineLength)
|
if(KdpScreenLineBufferPos != KdpScreenLineLength)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue