Commit 46fb1c79 authored by Stefan Weil's avatar Stefan Weil
Browse files

SysInfo: Fix typos in comments and strings



Most of them were found and fixed by codespell.

Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
parent 9e321eca
......@@ -291,7 +291,7 @@ UCHAR *CDMI::GetNextTable( UCHAR uType, BOOL bStart)
DmiHeader *dmi;
if (bStart)
// Search from begining of tables
// Search from beginning of tables
nPosition = 0;
while (nPosition < m_nStructureLength)
......
......@@ -86,7 +86,7 @@ protected:
BOOL CheckSum(const BYTE *buf, int length);
// Get length of DMI table at position nPosition
int GetTableLength( int nPosition);
// Get next DMI table of type uType, and start seraching form begining
// Get next DMI table of type uType, and start searching from beginning
// of table, or from current position
UCHAR *GetNextTable( UCHAR uType, BOOL bStart = FALSE);
......
......@@ -1531,7 +1531,7 @@ BOOL COSVersion::GetVersion(LPOS_VERSION_INFO lpVersionInformation)
}
#endif
#else //We must be runing on an emulated or real version of Win16 or DOS
#else //We must be running on an emulated or real version of Win16 or DOS
lpVersionInformation->EmulatedProcessorType = IA32_PROCESSOR; //We can only be running x86-32 code from Win16 or DOS
#ifdef _WINDOWS //Running on some version of Windows
......@@ -1639,7 +1639,7 @@ BOOL COSVersion::GetVersion(LPOS_VERSION_INFO lpVersionInformation)
_fstrcpy(lpVersionInformation->szUnderlyingCSDVersion, "");
}
#else //Must be some version of real or emulated DOS
//Retreive the current version of emulated DOS
//Retrieve the current version of emulated DOS
BYTE DosMinor;
BYTE DosMajor;
_asm
......@@ -3054,7 +3054,7 @@ void COSVersion::GetProductSuiteDetailsFromRegistry(LPOS_VERSION_INFO lpVersionI
//puts in the ProductSuite. In Windows 2000 Datacenter it does not matter as it
//supports GetVersionEx using a OSVERSIONINFOEX structure.
//Turn on appropiate fields in the "wSuiteMask" bit field
//Turn on appropriate fields in the "wSuiteMask" bit field
if (_tcsicmp(lpszSuite, _T("Terminal Server")) == 0)
lpVersionInformation->dwSuiteMask |= COSVERSION_SUITE_TERMINAL;
else if ((_tcsicmp(lpszSuite, _T("SBS")) == 0) || (_tcsicmp(lpszSuite, _T("Small Business")) == 0))
......
......@@ -415,7 +415,7 @@ LPCSTR CEdid::GetEdidText(BYTE lpByte[18])
}
memset( szResult, 0, 15);
strncpy( szResult, (LPCSTR) (lpByte+DESCRIPTOR_DATA_OFFSET), 14);
// Ignore space characters at begining
// Ignore space characters at beginning
for (i=0; i<strlen( szResult) && szResult[i]==' '; i++);
m_csBuffer.Format( "%s", szResult+i);
return m_csBuffer;
......
......@@ -75,7 +75,7 @@ typedef struct tag_EDIDMode
BYTE Vertical_Frequency;
} EDIDMode;
// Format of Detailed_Timing_DescriptionX if it is a Detailled Timing
// Format of Detailed_Timing_DescriptionX if it is a detailed timing
typedef struct tag_EDID_Detailled_Timing
{
BYTE Horizontal_Frequency; // horizontal frequency in kHz (if 00h, may be text)(see #00135)
......@@ -160,7 +160,7 @@ typedef struct tag_Standard_EDID
BYTE Checksum; // (radix-complement: 256-low byte of 16-bit sum of 00h-7Eh)
} Standard_EDID;
// Detailled Timing enumeration types
// Detailed Timing enumeration types
enum DetailTiming
{
Detailed_Timing_Description = 0,
......@@ -191,7 +191,7 @@ protected: // Methods
BOOL ParseEDID( LPBYTE lpByte, Standard_EDID &myEDID);
// Return manufacturer code (3 letters)
LPCSTR GetManufacturerID(BYTE ID[2]);
// Retreive EDID data from registry
// Retrieve EDID data from registry
BOOL GetDisplayEDID( HDEVINFO hDeviceInfoSet, SP_DEVINFO_DATA *pDevInfoData, Standard_EDID &myEDID);
// Decode DPMS flags to get monitor type
LPCSTR DecodeDPMSFlag( BYTE Flag);
......
......@@ -2023,7 +2023,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
AddLog( _T( "Registry NT GetSystemControllers: Trying to find Floppy Controllers in HKLM\\%s...\n"),
NT_CONTROLER_FLOPPY_KEY);
// Windows NT => Open the floppy controler key
// Windows NT => Open the floppy controller key
if (RegOpenKeyEx( m_hKey, NT_CONTROLER_FLOPPY_KEY, 0, KEY_READ|KEY_WOW64_64KEY, &hKeyEnum) == ERROR_SUCCESS)
{
// Enum the devices subkeys to find devices
......@@ -2136,7 +2136,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the IDE controler key
// Windows NT => Open the IDE controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find IDE Controllers in HKLM\\%s...\n"),
......@@ -2253,7 +2253,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the SCSI controler key
// Windows NT => Open the SCSI controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find SCSI Controllers in HKLM\\%s...\n"),
......@@ -2370,7 +2370,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the InfraRed controler key
// Windows NT => Open the InfraRed controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find InfraRed Controllers in HKLM\\%s...\n"),
......@@ -2447,7 +2447,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
csSubKey, NT_CONTROLER_INFRARED_VERSION_VALUE);
csVersion = NOT_AVAILABLE;
}
// Ensure it is a controler
// Ensure it is a controller
if (GetValue( hKeyObject, NT_CONTROLER_INFRARED_CONTROLER_VALUE, csValue) == ERROR_SUCCESS)
{
bHaveToStore = TRUE;
......@@ -2498,7 +2498,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the USB controler key
// Windows NT => Open the USB controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find USB Controllers in HKLM\\%s...\n"),
......@@ -2575,7 +2575,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
csSubKey, NT_CONTROLER_USB_VERSION_VALUE);
csVersion = NOT_AVAILABLE;
}
// Ensure it is a controler
// Ensure it is a controller
if (GetValue( hKeyObject, NT_CONTROLER_USB_CONTROLER_VALUE, csValue) == ERROR_SUCCESS)
{
bHaveToStore = TRUE;
......@@ -2626,7 +2626,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the IEEE1394 controler key
// Windows NT => Open the IEEE1394 controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find IEEE1394 Controllers in HKLM\\%s...\n"),
......@@ -2743,7 +2743,7 @@ BOOL CRegistry::GetSystemControllersNT(CSystemControllerList *pList)
}
else
AddLog( _T( "\tFailed because no valid object !\n"));
// Windows NT => Open the PCMCIA controler key
// Windows NT => Open the PCMCIA controller key
uIndex = 0;
dwIndexEnum = 0;
AddLog( _T( "Registry NT GetSystemControllers: Trying to find PCMCIA Controllers in HKLM\\%s...\n"),
......
......@@ -121,7 +121,7 @@ VOID SNMP_FUNC_TYPE SnmpUtilVarBindFree(IN OUT RFC1157VarBind *VarBind)
//* network traffic via a WebPage.
//* http://www.ee.ethz.ch/~oetiker/webtools/mrtg/
//*
//* Copyright (c) 1996-2001 Tobias Oetiker and all the Contributers
//* Copyright (c) 1996-2001 Tobias Oetiker and all the Contributors
//* to MRTG
//* All rights reserved.
//*
......
......@@ -160,7 +160,7 @@ void CStoragePeripheral::SetSN( LPCTSTR lpstrSN)
}
StrForSQL( m_csSN);
if (is_printable( m_csSN))
// Hex decode successfull
// Hex decode successful
return;
}
// Not hex encoded (or hex decode failed), ensure printable
......
......@@ -147,7 +147,7 @@ BOOL CSysInfo::getOS( CString &csName, CString &csVersion, CString &csComment, C
}
else if (os.IsWindowsME(&osvi))
{
csName = _T( "Microsoft Windows Millenium");
csName = _T( "Microsoft Windows Millennium");
csComment.Empty();
}
else
......
......@@ -20,13 +20,13 @@ public:
CVMSystem(void);
~CVMSystem(void);
// Try to detect hypervisor we're runnning on using Bios
// Try to detect hypervisor we're running on using Bios
BOOL DetectVM( CBios *pBios, CString &csVMSystem);
// Try to detect hypervisor we're runnning on using System controller
// Try to detect hypervisor we're running on using System controller
BOOL DetectVM( CSystemControllerList *pMyList, CString &csVMSystem);
// Try to detect hypervisor we're runnning on using Storage Peripherals
// Try to detect hypervisor we're running on using Storage Peripherals
BOOL DetectVM( CStoragePeripheralList *pMyList, CString &csVMSystem);
// Try to detect hypervisor we're runnning on using Video Adapter
// Try to detect hypervisor we're running on using Video Adapter
BOOL DetectVM( CVideoAdapterList *pMyList, CString &csVMSystem);
protected:
// Try to find Hypervisor signature into a string
......
......@@ -968,7 +968,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "Video Controler infos"));
m_List.AddString( _T( "Video Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_VideoController")))
{
......@@ -1263,7 +1263,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "Floppy Controler infos"));
m_List.AddString( _T( "Floppy Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_FloppyController")))
{
......@@ -1302,7 +1302,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "IDE Controler infos"));
m_List.AddString( _T( "IDE Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_IDEController")))
{
......@@ -1341,7 +1341,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "SCSI Controler infos"));
m_List.AddString( _T( "SCSI Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_SCSIController")))
{
......@@ -1388,7 +1388,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "InfraRed Controler infos"));
m_List.AddString( _T( "InfraRed Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_InfraredDevice")))
{
......@@ -1427,7 +1427,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "USB Controler infos"));
m_List.AddString( _T( "USB Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_USBController")))
{
......@@ -1466,7 +1466,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "IEEE 1394 Controler infos"));
m_List.AddString( _T( "IEEE 1394 Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_1394Controller")))
{
......@@ -1505,7 +1505,7 @@ void CTestSysInfoDlg::OnBnClickedWmi()
}
m_List.AddString( _T( "------------------------------------------------------"));
m_List.AddString( _T( "PCMCIA Controler infos"));
m_List.AddString( _T( "PCMCIA Controller infos"));
m_List.AddString( _T( "------------------------------------------------------"));
if (myWmiDll.BeginEnumClassObject( _T( "Win32_PCMCIAController")))
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment