From: Amine Khaldi Date: Sat, 5 Nov 2016 14:55:55 +0000 (+0000) Subject: [BASE] Spelling fixes by Josh Soref. CORE-12286 X-Git-Tag: ReactOS-0.4.4-FOSDEM2017~401 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d12708671ccd4f43fc4a0a95898befbade322950 [BASE] Spelling fixes by Josh Soref. CORE-12286 svn path=/trunk/; revision=73133 --- diff --git a/reactos/base/applications/atactl/atactl.cpp b/reactos/base/applications/atactl/atactl.cpp index 1a0f4689178..a315cac10d0 100644 --- a/reactos/base/applications/atactl/atactl.cpp +++ b/reactos/base/applications/atactl/atactl.cpp @@ -91,14 +91,14 @@ void print_help() { " will switch device at Scsi2, bus 1, taget_id 1 to UDMA0 mode\n" " atactl -h -d 30 c1:b0:d0:l0 \n" " will hide Master (d0:l0) device on secondary (c1:b0) IDE channel\n" - " and lock i/o on this channel for 30 seconds to ensure safity\n" + " and lock i/o on this channel for 30 seconds to ensure safety\n" " of removal process" "------\n" "Device address format:\n" "\n" "s number of controller in system. Is assigned during hardware\n" " detection. Usually s0/s1 are ATA Pri/Sec.\n" - " Note, due do NT internal desing ATA controllers are represented\n" + " Note, due do NT internal design ATA controllers are represented\n" " as SCSI controllers.\n" "b For ATA controllers it is channel number.\n" " Note, usually onboard controller is represented as 2 legacy\n" @@ -1283,7 +1283,7 @@ ata_scan( to.WaitForPhysicalLink = lock; to.Flags = unhide ? UNIATA_ADD_FLAGS_UNHIDE : 0; - printf("Scaning bus for new devices.\n"); + printf("Scanning bus for new devices.\n"); if(lock) { printf("You have %d seconds to connect device.\n", lock); } diff --git a/reactos/base/applications/calc/help.txt b/reactos/base/applications/calc/help.txt index 8f1e5a48a14..be9ccd87fdd 100644 --- a/reactos/base/applications/calc/help.txt +++ b/reactos/base/applications/calc/help.txt @@ -331,7 +331,7 @@ It deletes the current calculation and all sub expressions. Shortcut from keyboard: ESC F-E -It enables or it disables the fixed scietific notation. +It enables or it disables the fixed scientific notation. Shortcut from keyboard: V 0 1 2 3 4 5 6 7 8 9 diff --git a/reactos/base/applications/calc/rpn.c b/reactos/base/applications/calc/rpn.c index ccbf171ba77..a6f4e417b02 100644 --- a/reactos/base/applications/calc/rpn.c +++ b/reactos/base/applications/calc/rpn.c @@ -314,7 +314,7 @@ void run_operator(calc_node_t *result, calc.is_nan = TRUE; } else { operator_list[operation].op_i(&dc, &da, &db); - /* apply final limitator to result */ + /* apply final limiter to result */ apply_int_mask(&dc); } diff --git a/reactos/base/applications/calc/rpn_mpfr.c b/reactos/base/applications/calc/rpn_mpfr.c index e2f08173669..93d6f00f20b 100644 --- a/reactos/base/applications/calc/rpn_mpfr.c +++ b/reactos/base/applications/calc/rpn_mpfr.c @@ -300,7 +300,7 @@ void run_operator(calc_node_t *result, operator_list[operation].op_f(&result->number, &a->number, &b->number); } else { operator_list[operation].op_i(&result->number, &a->number, &b->number); - /* apply final limitator to result */ + /* apply final limiter to result */ apply_int_mask(&result->number); } } diff --git a/reactos/base/applications/calc/utl.c b/reactos/base/applications/calc/utl.c index 9ec8bebcc8f..8044d6f7765 100644 --- a/reactos/base/applications/calc/utl.c +++ b/reactos/base/applications/calc/utl.c @@ -11,7 +11,7 @@ void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base) break; case IDC_RADIO_DEC: /* - * Modifed from 17 to 16 for fixing this bug: + * Modified from 17 to 16 for fixing this bug: * 14+14+6.3+6.3= 40.5999999 instead of 40.6 * So, it's probably better to leave the least * significant digit out of the display. @@ -25,7 +25,7 @@ void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base) TCHAR *ptr, *dst; ptr = buffer + _stprintf(buffer, TEXT("%#*.*f"), width, ((MAX_LD_WIDTH-width-1)>=0) ? MAX_LD_WIDTH-width-1 : 0, rpn->f); - /* format sring ensures there is a '.': */ + /* format string ensures there is a '.': */ dst = _tcschr(buffer, TEXT('.')); while (--ptr > dst) if (*ptr != TEXT('0')) diff --git a/reactos/base/applications/calc/whatsnew.txt b/reactos/base/applications/calc/whatsnew.txt index bb712391367..8390deb5427 100644 --- a/reactos/base/applications/calc/whatsnew.txt +++ b/reactos/base/applications/calc/whatsnew.txt @@ -34,7 +34,7 @@ * Corrected precision underflow/overflow when working with trigonometric functions. * cbrt() function is not used if compiling into ReactOS build system. * Resources are moved into /res directory. -* Added new (partial) support for other languages: bulgarian, spanish, german, dutch, polish, russian, slovak, ukraianian. +* Added new (partial) support for other languages: bulgarian, spanish, german, dutch, polish, russian, slovak, ukrainian. * Decimal precision of number with standard layout has been limited to 16 digits because the output display is smaller here (GMP version only). * Fixed buffer overflow with function update_lcd_display(). * The decimal point is now preserved when switching to temporary scientific notation. diff --git a/reactos/base/applications/calc/winmain.c b/reactos/base/applications/calc/winmain.c index 5382ca77045..8a5af2f127f 100644 --- a/reactos/base/applications/calc/winmain.c +++ b/reactos/base/applications/calc/winmain.c @@ -435,7 +435,7 @@ KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) static void update_lcd_display(HWND hwnd) { /* - * muliply size of calc.buffer by 2 because it may + * multiply size of calc.buffer by 2 because it may * happen that separator is used between each digit. * Also added little additional space for dot and '\0'. */ diff --git a/reactos/base/applications/charmap/settings.c b/reactos/base/applications/charmap/settings.c index 865ac18bc2a..e92692a9d08 100644 --- a/reactos/base/applications/charmap/settings.c +++ b/reactos/base/applications/charmap/settings.c @@ -58,7 +58,7 @@ extern void LoadSettings(void) if (RegOpenKeyEx(HKEY_CURRENT_USER, g_szGeneralRegKey, 0, KEY_READ, &hKey) == ERROR_SUCCESS) { TCHAR szBuffer[MAX_PATH]; - DWORD dwAdvanChecked; + DWORD dwAdvancedChecked; unsigned long type = REG_DWORD, size = 1024; /* Restore last selected font */ @@ -89,9 +89,9 @@ extern void LoadSettings(void) } } - RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size); + RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvancedChecked, &size); - if(dwAdvanChecked == TRUE) + if(dwAdvancedChecked == TRUE) SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, MF_CHECKED, 0); RegCloseKey(hKey); diff --git a/reactos/base/applications/charmap_new/GridView.cpp b/reactos/base/applications/charmap_new/GridView.cpp index cb8096a11d8..639b3224e3a 100644 --- a/reactos/base/applications/charmap_new/GridView.cpp +++ b/reactos/base/applications/charmap_new/GridView.cpp @@ -69,7 +69,7 @@ CGridView::SetFont( ) { - // Create a temperary container for the new font + // Create a temporary container for the new font CurrentFont NewFont = { 0 }; NewFont.FontName = FontName; @@ -224,7 +224,7 @@ CGridView::OnSize( SWP_NOZORDER | SWP_SHOWWINDOW); // Get the client area we can draw on. The position we set above includes - // a scrollbar which we obvioulsy can't draw on. GetClientRect gives us + // a scrollbar which we obviously can't draw on. GetClientRect gives us // the size without the scroll, and it's more efficient than getting the // scroll metrics and calculating the size from that RECT ClientRect; diff --git a/reactos/base/applications/clipbrd/scrollutils.c b/reactos/base/applications/clipbrd/scrollutils.c index 3e19e78ce49..424921f3215 100644 --- a/reactos/base/applications/clipbrd/scrollutils.c +++ b/reactos/base/applications/clipbrd/scrollutils.c @@ -2,7 +2,7 @@ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Clipboard Viewer * FILE: base/applications/clipbrd/scrollutils.c - * PURPOSE: Scrolling releated helper functions. + * PURPOSE: Scrolling related helper functions. * PROGRAMMERS: Ricardo Hanke */ diff --git a/reactos/base/applications/clipbrd/scrollutils.h b/reactos/base/applications/clipbrd/scrollutils.h index f696d551586..221bf50ce07 100644 --- a/reactos/base/applications/clipbrd/scrollutils.h +++ b/reactos/base/applications/clipbrd/scrollutils.h @@ -2,7 +2,7 @@ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Clipboard Viewer * FILE: base/applications/clipbrd/scrollutils.h - * PURPOSE: Scrolling releated helper functions. + * PURPOSE: Scrolling related helper functions. * PROGRAMMERS: Ricardo Hanke */ diff --git a/reactos/base/applications/dxdiag/sound.c b/reactos/base/applications/dxdiag/sound.c index 8bbe9b674ba..ff5cc487dc3 100644 --- a/reactos/base/applications/dxdiag/sound.c +++ b/reactos/base/applications/dxdiag/sound.c @@ -73,7 +73,7 @@ IsDriverWHQL(LPWSTR szFileName) /* get the driver's cat file */ if (!GetCatFileFromDriverPath(szFileName, szCatFile)) { - /* driver has no cat so its definately not WHQL signed */ + /* driver has no cat so it's definitely not WHQL signed */ return FALSE; } @@ -126,7 +126,7 @@ SetDeviceDetails(HWND hwndDlg, LPCGUID classGUID, LPCWSTR lpcstrDescription) SetDlgItemInt(hwndDlg, IDC_STATIC_DSOUND_PRODUCTID, waveOut.wPid, FALSE); /* set the vendor id */ SetDlgItemInt(hwndDlg, IDC_STATIC_DSOUND_VENDORID, waveOut.wMid, FALSE); - /* check if its a wdm audio driver */ + /* check if it's a WDM audio driver */ if (waveOut.wPid == MM_MSFT_WDMAUDIO_WAVEOUT) SendDlgItemMessageW(hwndDlg, IDC_STATIC_DSOUND_TYPE, WM_SETTEXT, 0, (LPARAM)L"WDM"); diff --git a/reactos/base/applications/fltmc/lang/en-US.rc b/reactos/base/applications/fltmc/lang/en-US.rc index 004bbe6c65f..95e03382425 100644 --- a/reactos/base/applications/fltmc/lang/en-US.rc +++ b/reactos/base/applications/fltmc/lang/en-US.rc @@ -20,7 +20,7 @@ END STRINGTABLE BEGIN - IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n" + IDS_ERROR_PRIV "Failed to set the driver load privilege (0x%X)\n" IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n" IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n" IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n" diff --git a/reactos/base/applications/fontview/display.c b/reactos/base/applications/fontview/display.c index 9e1f2f215a6..136401f5088 100644 --- a/reactos/base/applications/fontview/display.c +++ b/reactos/base/applications/fontview/display.c @@ -94,7 +94,7 @@ Display_DrawText(HDC hDC, DISPLAYDATA* pData, int nYPos) TextOutW(hDC, 0, y, szCaption, (INT)wcslen(szCaption)); y += tm.tmHeight + SPACING1; - /* Draw a seperation Line */ + /* Draw a separation Line */ SelectObject(hDC, GetStockObject(BLACK_PEN)); MoveToEx(hDC, 0, y, NULL); LineTo(hDC, 10000, y); @@ -117,7 +117,7 @@ Display_DrawText(HDC hDC, DISPLAYDATA* pData, int nYPos) TextOutW(hDC, 0, y, szCaption, (INT)wcslen(szCaption)); y += tm.tmHeight + 1; - /* Draw a seperation Line */ + /* Draw a separation Line */ SelectObject(hDC, GetStockObject(BLACK_PEN)); MoveToEx(hDC, 0, y, NULL); LineTo(hDC, 10000, y); diff --git a/reactos/base/applications/fontview/fontview.c b/reactos/base/applications/fontview/fontview.c index 44f7301fb6a..142255eb5f9 100644 --- a/reactos/base/applications/fontview/fontview.c +++ b/reactos/base/applications/fontview/fontview.c @@ -204,7 +204,7 @@ WinMain (HINSTANCE hThisInstance, /* The class is registered, let's create the main window */ hMainWnd = CreateWindowExW( - 0, /* Extended possibilites for variation */ + 0, /* Extended possibilities for variation */ g_szFontViewClassName, /* Classname */ g_ExtLogFontW.elfFullName,/* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ diff --git a/reactos/base/applications/games/solitaire/solgame.cpp b/reactos/base/applications/games/solitaire/solgame.cpp index 67877a6131d..f1322647dba 100644 --- a/reactos/base/applications/games/solitaire/solgame.cpp +++ b/reactos/base/applications/games/solitaire/solgame.cpp @@ -414,7 +414,7 @@ void CARDLIBPROC RowStackDblClickProc(CardRegion &stackobj, int iNumClicked) SetPlayTimer(); //stackobj.MoveCards(pDest, 1, true); - //use the SimulateDrag funcion, because we get the + //use the SimulateDrag function, because we get the //AddProc callbacks called for us on the destination stacks... bAutoroute = true; stackobj.SimulateDrag(pDest, 1, true); diff --git a/reactos/base/applications/kbswitch/kbswitch.c b/reactos/base/applications/kbswitch/kbswitch.c index 13613403142..60f60021eab 100644 --- a/reactos/base/applications/kbswitch/kbswitch.c +++ b/reactos/base/applications/kbswitch/kbswitch.c @@ -174,7 +174,7 @@ GetLayoutID(LPTSTR szLayoutNum, LPTSTR szLCID, SIZE_T LCIDLength) RegCloseKey(hKey); } - // Look for a substitude of this layout + // Look for a substitute of this layout if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Substitutes"), 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) { dwBufLen = sizeof(szTempLCID); diff --git a/reactos/base/applications/magnify/lang/en-US.rc b/reactos/base/applications/magnify/lang/en-US.rc index 1cb2ca589a3..f98b911c607 100644 --- a/reactos/base/applications/magnify/lang/en-US.rc +++ b/reactos/base/applications/magnify/lang/en-US.rc @@ -60,7 +60,7 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK", IDOK, 193, 76, 50, 14 ICON IDI_ICON, IDC_STATIC, 7, 17, 20, 20 - LTEXT "Magnifier is intended to provide a minimum level of functionality for users with slight visual impairments. Most users with visual impairments will need a magnification utility with higher funcionality for daily use.", IDC_STATIC, 36, 7, 207, 33 + LTEXT "Magnifier is intended to provide a minimum level of functionality for users with slight visual impairments. Most users with visual impairments will need a magnification utility with higher functionality for daily use.", IDC_STATIC, 36, 7, 207, 33 CONTROL "Do not show this message again", IDC_SHOWWARNINGCHECK, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 43, 80, 137, 10 END diff --git a/reactos/base/applications/mplay32/mplay32.c b/reactos/base/applications/mplay32/mplay32.c index 1a2e347de3e..8a900d1d6cc 100644 --- a/reactos/base/applications/mplay32/mplay32.c +++ b/reactos/base/applications/mplay32/mplay32.c @@ -1061,14 +1061,14 @@ BuildFileFilterAndDeviceMenu(VOID) /* Add the description */ StringCbPrintfEx(c, uSizeRemain, &c, &uSizeRemain, 0, _T("%s (%s)"), szFriendlyName, szExtensionList); - /* Skip one char to seperate the description from the filter mask */ + /* Skip one char to separate the description from the filter mask */ c++; uSizeRemain -= sizeof(*c); /* Append the filter mask */ StringCbCopyEx(c, uSizeRemain, szExtensionList, &c, &uSizeRemain, 0); - /* Skip another char to seperate the elements of the filter mask */ + /* Skip another char to separate the elements of the filter mask */ c++; uSizeRemain -= sizeof(*c); } @@ -1096,7 +1096,7 @@ BuildFileFilterAndDeviceMenu(VOID) /* Add the default (all files) description */ StringCbPrintfEx(c, uSizeRemain, &c, &uSizeRemain, 0, _T("%s (%s)"), szDefaultFilter, szExtensionList); - /* Skip one char to seperate the description from the filter mask */ + /* Skip one char to separate the description from the filter mask */ c++; uSizeRemain -= sizeof(*c); @@ -1122,7 +1122,7 @@ Failure: /* Add the default (all files) description */ StringCbPrintfEx(c, uSizeRemain, &c, &uSizeRemain, 0, _T("%s (%s)"), szDefaultFilter, szDefaultExtension); - /* Skip one char to seperate the description from the filter mask */ + /* Skip one char to separate the description from the filter mask */ c++; uSizeRemain -= sizeof(*c); diff --git a/reactos/base/applications/msconfig_new/srvpage.cpp b/reactos/base/applications/msconfig_new/srvpage.cpp index 1504d109d05..816382482b6 100644 --- a/reactos/base/applications/msconfig_new/srvpage.cpp +++ b/reactos/base/applications/msconfig_new/srvpage.cpp @@ -735,15 +735,15 @@ ServicesPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { case IDC_BTN_SERVICES_ACTIVATE: { - BOOL bAreThereModifs = FALSE; + BOOL bAreThereMods = FALSE; int index = -1; // From the beginning. while ((index = ListView_GetNextItem(hServicesListCtrl, index, LVNI_ALL)) != -1) { - bAreThereModifs = ValidateItem(index, TRUE, FALSE) || bAreThereModifs; // The order is verrrrrry important !!!! + bAreThereMods = ValidateItem(index, TRUE, FALSE) || bAreThereMods; // The order is verrrrrry important !!!! } - if (bAreThereModifs) + if (bAreThereMods) { Update_Btn_States(hDlg); PropSheet_Changed(GetParent(hServicesPage), hServicesPage); @@ -754,15 +754,15 @@ ServicesPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) case IDC_BTN_SERVICES_DEACTIVATE: { - BOOL bAreThereModifs = FALSE; + BOOL bAreThereMods = FALSE; int index = -1; // From the beginning. while ((index = ListView_GetNextItem(hServicesListCtrl, index, LVNI_ALL)) != -1) { - bAreThereModifs = ValidateItem(index, FALSE, FALSE) || bAreThereModifs; // The order is verrrrrry important !!!! + bAreThereMods = ValidateItem(index, FALSE, FALSE) || bAreThereMods; // The order is verrrrrry important !!!! } - if (bAreThereModifs) + if (bAreThereMods) { Update_Btn_States(hDlg); PropSheet_Changed(GetParent(hServicesPage), hServicesPage); @@ -927,7 +927,7 @@ ServicesPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) if (lpServiceConfig->dwStartType == SERVICE_DISABLED) // We have a disabled service which is becoming to be enabled. { - // 3a- Retrive the properties of the disabled service from the registry. + // 3a- Retrieve the properties of the disabled service from the registry. RegistryDisabledServiceItemParams params = {}; QUERY_REGISTRY_KEYS_TABLE KeysQueryTable[2] = {}; diff --git a/reactos/base/applications/mscutils/devmgmt/devmgmt.c b/reactos/base/applications/mscutils/devmgmt/devmgmt.c index 2c61051a2df..2feb0c48e5e 100644 --- a/reactos/base/applications/mscutils/devmgmt/devmgmt.c +++ b/reactos/base/applications/mscutils/devmgmt/devmgmt.c @@ -1,5 +1,5 @@ /* - * PROJECT: ReactOS Device Managment + * PROJECT: ReactOS Device Management * LICENSE: GPL - See COPYING in the top level directory * FILE: base/applications/mscutils/devmgmt/devmgmt.c * PURPOSE: Bootstrap for the device manager diff --git a/reactos/base/applications/mscutils/eventvwr/eventvwr.c b/reactos/base/applications/mscutils/eventvwr/eventvwr.c index 8106a2fcc7a..6ab4218c3e5 100644 --- a/reactos/base/applications/mscutils/eventvwr/eventvwr.c +++ b/reactos/base/applications/mscutils/eventvwr/eventvwr.c @@ -340,7 +340,7 @@ GetMessageStringFromDll( * and we did not pass the flag FORMAT_MESSAGE_IGNORE_INSERTS, and the * message string expected too many inserts. * In this last case only, we can call again FormatMessage but ignore - * explicitely the inserts. The string that we will return to the user + * explicitly the inserts. The string that we will return to the user * will not be pre-formatted. */ if (((dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER) || lpMsgBuf) && diff --git a/reactos/base/applications/mscutils/servman/dependencies_tv1.c b/reactos/base/applications/mscutils/servman/dependencies_tv1.c index bd5b59f6e1b..5e764e51dbe 100644 --- a/reactos/base/applications/mscutils/servman/dependencies_tv1.c +++ b/reactos/base/applications/mscutils/servman/dependencies_tv1.c @@ -183,7 +183,7 @@ TV1_Initialize(PSERVICEPROPSHEET pDlgInfo, { BOOL bRet = FALSE; - /* Accociate the imagelist with TV1 */ + /* Associate the imagelist with TV1 */ pDlgInfo->hDependsTreeView1 = GetDlgItem(pDlgInfo->hDependsWnd, IDC_DEPEND_TREE1); if (!pDlgInfo->hDependsTreeView1) { diff --git a/reactos/base/applications/mscutils/servman/dependencies_tv2.c b/reactos/base/applications/mscutils/servman/dependencies_tv2.c index dfd94a1daff..a0f37b07c12 100644 --- a/reactos/base/applications/mscutils/servman/dependencies_tv2.c +++ b/reactos/base/applications/mscutils/servman/dependencies_tv2.c @@ -179,7 +179,7 @@ TV2_Initialize(PSERVICEPROPSHEET pDlgInfo, { BOOL bRet = FALSE; - /* Accociate the imagelist with TV2 */ + /* Associate the imagelist with TV2 */ pDlgInfo->hDependsTreeView2 = GetDlgItem(pDlgInfo->hDependsWnd, IDC_DEPEND_TREE2); if (!pDlgInfo->hDependsTreeView2) { diff --git a/reactos/base/applications/mscutils/servman/lang/en-US.rc b/reactos/base/applications/mscutils/servman/lang/en-US.rc index ad6b8bf4960..0adf899b3ff 100644 --- a/reactos/base/applications/mscutils/servman/lang/en-US.rc +++ b/reactos/base/applications/mscutils/servman/lang/en-US.rc @@ -280,9 +280,9 @@ BEGIN IDS_PROGRESS_INFO_STOP "ReactOS is attempting to stop the following service" IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following service" IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following service" - IDS_CREATE_SUCCESS "Service Created Succesfully" - IDS_DELETE_SUCCESS "Service Deleted Succesfully" - IDS_CREATE_REQ "Fields marked with an\nasterix are mandatory" + IDS_CREATE_SUCCESS "Service Created Successfully" + IDS_DELETE_SUCCESS "Service Deleted Successfully" + IDS_CREATE_REQ "Fields marked with an\nasterisk are mandatory" IDS_DELETE_STOP "You must manually stop the service before deleting!" END diff --git a/reactos/base/applications/mscutils/servman/misc.c b/reactos/base/applications/mscutils/servman/misc.c index 3cd52019222..e41f3183e0e 100644 --- a/reactos/base/applications/mscutils/servman/misc.c +++ b/reactos/base/applications/mscutils/servman/misc.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS Services * LICENSE: GPL - See COPYING in the top level directory * FILE: base/applications/mscutils/servman/misc.c - * PURPOSE: miscallanous functions + * PURPOSE: miscellaneous functions * COPYRIGHT: Copyright 2005 Thomas Weidenmueller * Copyright 2006 Ged Murphy * diff --git a/reactos/base/applications/mstsc/bitmap.c b/reactos/base/applications/mstsc/bitmap.c index ae58a05a1ff..68627b7f02c 100644 --- a/reactos/base/applications/mstsc/bitmap.c +++ b/reactos/base/applications/mstsc/bitmap.c @@ -17,8 +17,8 @@ along with this program. If not, see . */ -/* three seperate function for speed when decompressing the bitmaps - when modifing one function make the change in the others +/* three separate function for speed when decompressing the bitmaps + when modifying one function make the change in the others jay.sorg@gmail.com */ /* indent is confused by this file */ diff --git a/reactos/base/applications/mstsc/cache.c b/reactos/base/applications/mstsc/cache.c index 78dc3baa9bf..c6370a44b5c 100644 --- a/reactos/base/applications/mstsc/cache.c +++ b/reactos/base/applications/mstsc/cache.c @@ -33,7 +33,7 @@ extern int g_pstcache_fd[]; /* * TODO: Test for optimal value of BUMP_COUNT. TO_TOP gives lowest cpu utilisation but using * a positive value will hopefully result in less frequently used bitmaps having a greater chance - * of being evicted from the cache, and therby reducing the need to load bitmaps from disk. + * of being evicted from the cache, and thereby reducing the need to load bitmaps from disk. * (Jeroen) */ #define BUMP_COUNT 40 diff --git a/reactos/base/applications/mstsc/connectdialog.c b/reactos/base/applications/mstsc/connectdialog.c index c707b243900..96870e3cc9e 100644 --- a/reactos/base/applications/mstsc/connectdialog.c +++ b/reactos/base/applications/mstsc/connectdialog.c @@ -156,7 +156,7 @@ LoadUsernameHint(HWND hDlg, INT iCur) static VOID -FillServerAddesssCombo(PINFO pInfo) +FillServerAddressCombo(PINFO pInfo) { HKEY hKey; WCHAR KeyName[] = L"Software\\Microsoft\\Terminal Server Client\\Default"; @@ -325,7 +325,7 @@ GeneralOnInit(HWND hwnd, 0); } - FillServerAddesssCombo(pInfo); + FillServerAddressCombo(pInfo); ReLoadGeneralPage(pInfo); } diff --git a/reactos/base/applications/mstsc/constants.h b/reactos/base/applications/mstsc/constants.h index ce8e3e479c5..f1ac8f44c30 100644 --- a/reactos/base/applications/mstsc/constants.h +++ b/reactos/base/applications/mstsc/constants.h @@ -131,12 +131,12 @@ enum MCS_PDU_TYPE #define LICENCE_SIGNATURE_SIZE 16 #define LICENCE_TAG_REQUEST 0x01 -#define LICENCE_TAG_PLATFORM_CHALLANGE 0x02 +#define LICENCE_TAG_PLATFORM_CHALLENGE 0x02 #define LICENCE_TAG_NEW_LICENCE 0x03 #define LICENCE_TAG_UPGRADE_LICENCE 0x04 #define LICENCE_TAG_LICENCE_INFO 0x12 #define LICENCE_TAG_NEW_LICENCE_REQUEST 0x13 -#define LICENCE_TAG_PLATFORM_CHALLANGE_RESPONSE 0x15 +#define LICENCE_TAG_PLATFORM_CHALLENGE_RESPONSE 0x15 #define LICENCE_TAG_ERROR_ALERT 0xff #define BB_CLIENT_USER_NAME_BLOB 0x000f @@ -323,7 +323,7 @@ enum RDP_INPUT_DEVICE #define RDP_INFO_AUTOLOGON 0x00000008 #define RDP_INFO_UNICODE 0x00000010 #define RDP_INFO_MAXIMIZESHELL 0x00000020 -#define RDP_INFO_COMPRESSION 0x00000080 /* mppc compression with 8kB histroy buffer */ +#define RDP_INFO_COMPRESSION 0x00000080 /* mppc compression with 8kB history buffer */ #define RDP_INFO_ENABLEWINDOWSKEY 0x00000100 #define RDP_INFO_COMPRESSION2 0x00000200 /* rdp5 mppc compression with 64kB history buffer */ #define RDP_INFO_REMOTE_CONSOLE_AUDIO 0x00002000 diff --git a/reactos/base/applications/mstsc/licence.c b/reactos/base/applications/mstsc/licence.c index 8ade6c78a52..c39e52a9b77 100644 --- a/reactos/base/applications/mstsc/licence.c +++ b/reactos/base/applications/mstsc/licence.c @@ -199,9 +199,9 @@ licence_process_request(STREAM s) licence_send_new_licence_request(null_data, null_data, g_username, g_hostname); } -/* Send a platform challange response packet */ +/* Send a platform challenge response packet */ static void -licence_send_platform_challange_response(uint8 * token, uint8 * crypt_hwid, uint8 * signature) +licence_send_platform_challenge_response(uint8 * token, uint8 * crypt_hwid, uint8 * signature) { uint32 sec_flags = SEC_LICENCE_NEG; uint16 length = 58; @@ -209,7 +209,7 @@ licence_send_platform_challange_response(uint8 * token, uint8 * crypt_hwid, uint s = sec_init(sec_flags, length + 2); - out_uint8(s, LICENCE_TAG_PLATFORM_CHALLANGE_RESPONSE); + out_uint8(s, LICENCE_TAG_PLATFORM_CHALLENGE_RESPONSE); out_uint8(s, ((g_rdp_version >= RDP_V5) ? 3 : 2)); /* version */ out_uint16_le(s, length); @@ -227,9 +227,9 @@ licence_send_platform_challange_response(uint8 * token, uint8 * crypt_hwid, uint sec_send(s, sec_flags); } -/* Parse an platform challange request packet */ +/* Parse a platform challenge request packet */ static RD_BOOL -licence_parse_platform_challange(STREAM s, uint8 ** token, uint8 ** signature) +licence_parse_platform_challenge(STREAM s, uint8 ** token, uint8 ** signature) { uint16 tokenlen; @@ -248,9 +248,9 @@ licence_parse_platform_challange(STREAM s, uint8 ** token, uint8 ** signature) return s_check_end(s); } -/* Process a platform challange packet */ +/* Process a platform challenge packet */ static void -licence_process_platform_challange(STREAM s) +licence_process_platform_challenge(STREAM s) { uint8 *in_token = NULL, *in_sig; uint8 out_token[LICENCE_TOKEN_SIZE], decrypt_token[LICENCE_TOKEN_SIZE]; @@ -260,7 +260,7 @@ licence_process_platform_challange(STREAM s) void * crypt_key; /* Parse incoming packet and save the encrypted token */ - licence_parse_platform_challange(s, &in_token, &in_sig); + licence_parse_platform_challenge(s, &in_token, &in_sig); memcpy(out_token, in_token, LICENCE_TOKEN_SIZE); /* Decrypt the token. It should read TEST in Unicode. */ @@ -281,7 +281,7 @@ licence_process_platform_challange(STREAM s) ssl_rc4_crypt(crypt_key, (char *)hwid, (char *)crypt_hwid, LICENCE_HWID_SIZE); ssl_rc4_info_delete(crypt_key); - licence_send_platform_challange_response(out_token, crypt_hwid, out_sig); + licence_send_platform_challenge_response(out_token, crypt_hwid, out_sig); } /* Process a new licence packet */ @@ -343,7 +343,7 @@ licence_process_error_alert(STREAM s) return; } - /* handle error codes, for now, jsut report them */ + /* handle error codes, for now, just report them */ switch (error_code) { case 0x6: // ERR_NO_LICENSE_SERVER @@ -363,7 +363,7 @@ licence_process_error_alert(STREAM s) break; } - /* handle error codes, for now, jsut report them */ + /* handle error codes, for now, just report them */ switch (error_info) { default: @@ -393,8 +393,8 @@ licence_process(STREAM s) licence_process_request(s); break; - case LICENCE_TAG_PLATFORM_CHALLANGE: - licence_process_platform_challange(s); + case LICENCE_TAG_PLATFORM_CHALLENGE: + licence_process_platform_challenge(s); break; case LICENCE_TAG_NEW_LICENCE: diff --git a/reactos/base/applications/mstsc/precomp.h b/reactos/base/applications/mstsc/precomp.h index 1835fb028f0..4c8eef733fc 100644 --- a/reactos/base/applications/mstsc/precomp.h +++ b/reactos/base/applications/mstsc/precomp.h @@ -25,7 +25,7 @@ #define RDP_INFO_AUTOLOGON 0x00000008 #define RDP_INFO_UNICODE 0x00000010 #define RDP_INFO_MAXIMIZESHELL 0x00000020 -#define RDP_INFO_COMPRESSION 0x00000080 /* mppc compression with 8kB histroy buffer */ +#define RDP_INFO_COMPRESSION 0x00000080 /* mppc compression with 8kB history buffer */ #define RDP_INFO_ENABLEWINDOWSKEY 0x00000100 #define RDP_INFO_COMPRESSION2 0x00000200 /* rdp5 mppc compression with 64kB history buffer */ #define RDP_INFO_REMOTE_CONSOLE_AUDIO 0x00002000 diff --git a/reactos/base/applications/mstsc/rdesktop.h b/reactos/base/applications/mstsc/rdesktop.h index 242bf3957cf..2b1cc2508dc 100644 --- a/reactos/base/applications/mstsc/rdesktop.h +++ b/reactos/base/applications/mstsc/rdesktop.h @@ -191,7 +191,7 @@ ((tvp)->tv_sec = (tvp)->tv_usec = 0) #endif -/* If configure does not define the endianess, try +/* If configure does not define the endianness, try to find it out */ #if !defined(L_ENDIAN) && !defined(B_ENDIAN) #if __BYTE_ORDER == __LITTLE_ENDIAN diff --git a/reactos/base/applications/mstsc/rdp.c b/reactos/base/applications/mstsc/rdp.c index d3aed1112ab..3a675258e9f 100644 --- a/reactos/base/applications/mstsc/rdp.c +++ b/reactos/base/applications/mstsc/rdp.c @@ -395,8 +395,8 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user, 2 + len_program + /* AlternateShell */ 2 + len_directory + /* WorkingDir */ /* size of TS_EXTENDED_INFO_PACKET */ - 2 + /* clientAdressFamily */ - 2 + /* cbClientAdress */ + 2 + /* clientAddressFamily */ + 2 + /* cbClientAddress */ len_ip + /* clientAddress */ 2 + /* cbClientDir */ len_dll + /* clientDir */ diff --git a/reactos/base/applications/mstsc/secure.c b/reactos/base/applications/mstsc/secure.c index b9ffa306b5e..1e5c0efd287 100644 --- a/reactos/base/applications/mstsc/secure.c +++ b/reactos/base/applications/mstsc/secure.c @@ -1011,7 +1011,7 @@ sec_recv(uint8 * rdpver) { /* for some reason the PDU and the length seem to be swapped. This isn't good, but we're going to do a byte for byte - swap. So the first foure value appear as: 00 04 XX YY, + swap. So the first four values appear as: 00 04 XX YY, where XX YY is the little endian length. We're going to use 04 00 as the PDU type, so after our swap this will look like: XX YY 04 00 */ @@ -1074,7 +1074,7 @@ sec_connect(char *server, char *username, char *domain, char *password, RD_BOOL mcs_data.p = mcs_data.data = (uint8 *) xmalloc(mcs_data.size); sec_out_mcs_data(&mcs_data, selected_proto); - /* finialize the MCS connect sequence */ + /* finalize the MCS connect sequence */ if (!mcs_connect_finalize(&mcs_data)) return False; diff --git a/reactos/base/applications/mstsc/win32.c b/reactos/base/applications/mstsc/win32.c index 0a588e03f7f..0177e087306 100644 --- a/reactos/base/applications/mstsc/win32.c +++ b/reactos/base/applications/mstsc/win32.c @@ -58,7 +58,7 @@ static int g_clip_left = 0; static int g_clip_top = 0; static int g_clip_right = 800; static int g_clip_bottom = 600; -static RECT g_wnd_clip; /* this client area of whats actually visable */ +static RECT g_wnd_clip; /* this client area of whats actually visible */ /* set from WM_SIZE */ /*****************************************************************************/ diff --git a/reactos/base/applications/network/arp/arp.c b/reactos/base/applications/network/arp/arp.c index fb4f5ea36aa..4c9322119a6 100644 --- a/reactos/base/applications/network/arp/arp.c +++ b/reactos/base/applications/network/arp/arp.c @@ -42,11 +42,11 @@ /* * Globals */ -const char SEPERATOR = '-'; +const char SEPARATOR = '-'; int _CRT_glob = 0; // stop * from listing dir files in arp -d * /* - * function declerations + * function declarations */ DWORD DoFormatMessage(VOID); INT PrintEntries(PMIB_IPNETROW pIpAddRow); @@ -220,7 +220,7 @@ INT DisplayArpEntries(PTCHAR pszInetAddr, PTCHAR pszIfAddr) for (i=0; i < pIpNetTable->dwNumEntries; i++) { - /* if the user has supplied their own internet addesss * + /* if the user has supplied their own internet address * * only print the arp entry which matches that */ if (pszInetAddr) { @@ -287,7 +287,7 @@ INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr) } for (i=0; i<17; i++) { - if (pszEthAddr[i] == SEPERATOR) + if (pszEthAddr[i] == SEPARATOR) continue; if (!isxdigit(pszEthAddr[i])) diff --git a/reactos/base/applications/network/ftp/cmds.c b/reactos/base/applications/network/ftp/cmds.c index b722a2b383d..d77982da6c0 100644 --- a/reactos/base/applications/network/ftp/cmds.c +++ b/reactos/base/applications/network/ftp/cmds.c @@ -2099,7 +2099,7 @@ void setrunique(int argc, const char *argv[]) code = runique; } -/* change directory to perent directory */ +/* change directory to parent directory */ void cdup(int argc, const char *argv[]) { if (command("CDUP") == ERROR && code == 500) { @@ -2265,7 +2265,7 @@ void modtime(int argc, const char *argv[]) } /* - * show status on reomte machine + * show status on remote machine */ void rmtstatus(int argc, const char *argv[]) { diff --git a/reactos/base/applications/network/ftp/ftp.c b/reactos/base/applications/network/ftp/ftp.c index eef371d694d..910506827cf 100644 --- a/reactos/base/applications/network/ftp/ftp.c +++ b/reactos/base/applications/network/ftp/ftp.c @@ -201,7 +201,7 @@ int login(const char *host) acct = pacct; } while (user == NULL) { - const char *myname = "none"; // This needs to become the usename env + const char *myname = "none"; // This needs to become the username env if (myname) printf("Name (%s:%s): ", host, myname); @@ -614,7 +614,7 @@ null();// oldintp = signal(SIGPIPE, SIG_IGN); (void) fflush(stdout); hashbytes += HASHBYTES; } -// Szurgot: The following code is unncessary on Win32. +// Szurgot: The following code is unnecessary on Win32. // (void) fputcSocket(dout, '\r'); // bytes++; } diff --git a/reactos/base/applications/network/ipconfig/ipconfig.c b/reactos/base/applications/network/ipconfig/ipconfig.c index 20ecc641b46..51651bca524 100644 --- a/reactos/base/applications/network/ipconfig/ipconfig.c +++ b/reactos/base/applications/network/ipconfig/ipconfig.c @@ -540,7 +540,7 @@ VOID ShowInfo(BOOL bAll) if (pAdapter->HaveWins) { _tprintf(_T("\tPrimary WINS Server . . . . . . . : %s\n"), pAdapter->PrimaryWinsServer.IpAddress.String); - _tprintf(_T("\tSecondard WINS Server . . . . . . : %s\n"), pAdapter->SecondaryWinsServer.IpAddress.String); + _tprintf(_T("\tSecondary WINS Server . . . . . . : %s\n"), pAdapter->SecondaryWinsServer.IpAddress.String); } if (pAdapter->DhcpEnabled) diff --git a/reactos/base/applications/network/netstat/netstat.c b/reactos/base/applications/network/netstat/netstat.c index 9412ebb1606..296e6dfe3f0 100644 --- a/reactos/base/applications/network/netstat/netstat.c +++ b/reactos/base/applications/network/netstat/netstat.c @@ -269,7 +269,7 @@ VOID ShowIpStatistics() _tprintf(_T(" %-34s = %lu\n"), _T("Reassembly Required"), pIpStats->dwReasmReqds); _tprintf(_T(" %-34s = %lu\n"), _T("Reassembly Succesful"), pIpStats->dwReasmOks); _tprintf(_T(" %-34s = %lu\n"), _T("Reassembly Failures"), pIpStats->dwReasmFails); - // _tprintf(_T(" %-34s = %lu\n"), _T("Datagrams succesfully fragmented"), NULL); /* FIXME: what is this one? */ + // _tprintf(_T(" %-34s = %lu\n"), _T("Datagrams successfully fragmented"), NULL); /* FIXME: what is this one? */ _tprintf(_T(" %-34s = %lu\n"), _T("Datagrams Failing Fragmentation"), pIpStats->dwFragFails); _tprintf(_T(" %-34s = %lu\n"), _T("Fragments Created"), pIpStats->dwFragCreates); } @@ -517,7 +517,7 @@ VOID ShowUdpTable() PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen) { - struct servent *pSrvent; + struct servent *pServent; if (bDoShowNumbers) { @@ -525,8 +525,8 @@ GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen) return Name; } /* Try to translate to a name */ - if ((pSrvent = getservbyport(Port, Proto))) - strcpy(Name, pSrvent->s_name ); + if ((pServent = getservbyport(Port, Proto))) + strcpy(Name, pServent->s_name ); else sprintf(Name, "%d", htons((WORD)Port)); return Name; diff --git a/reactos/base/applications/network/netstat/netstat.h b/reactos/base/applications/network/netstat/netstat.h index 3a5d820aec8..e57b89d184e 100644 --- a/reactos/base/applications/network/netstat/netstat.h +++ b/reactos/base/applications/network/netstat/netstat.h @@ -42,7 +42,7 @@ typedef struct { MIB_UDPEXROW table; } MIB_UDPEXTABLE, *PMIB_UDPEXTABLE; -/* function declerations */ +/* function declarations */ BOOL ParseCmdline(int argc, char* argv[]); BOOL DisplayOutput(VOID); DWORD DoFormatMessage(DWORD ErrorCode); diff --git a/reactos/base/applications/network/tracert/tracert.c b/reactos/base/applications/network/tracert/tracert.c index d267d6cc087..2a7fce01575 100644 --- a/reactos/base/applications/network/tracert/tracert.c +++ b/reactos/base/applications/network/tracert/tracert.c @@ -182,7 +182,7 @@ GetTime(PAPPINFO pInfo) { LARGE_INTEGER Time; - /* Get the system time using preformance counters if available */ + /* Get the system time using performance counters if available */ if (pInfo->bUsePerformanceCounter) { if (QueryPerformanceCounter(&Time)) @@ -310,7 +310,7 @@ ReceivePacket(PAPPINFO pInfo) DebugPrint(_T("Receiving packet. Available buffer, %d bytes... "), MAX_PING_PACKET_SIZE); - /* monitor icmpSock for incomming connections */ + /* monitor icmpSock for incoming connections */ FD_ZERO(&readFDS); FD_SET(pInfo->icmpSock, &readFDS); @@ -345,7 +345,7 @@ ReceivePacket(PAPPINFO pInfo) { /* get time packet was received */ pInfo->lTimeEnd = GetTime(pInfo); - DebugPrint(_T("reveived %d bytes\n"), iSockRet); + DebugPrint(_T("received %d bytes\n"), iSockRet); bRet = TRUE; } else diff --git a/reactos/base/applications/network/tracert/tracert.h b/reactos/base/applications/network/tracert/tracert.h index 0c49fb34e09..9026ae3a629 100644 --- a/reactos/base/applications/network/tracert/tracert.h +++ b/reactos/base/applications/network/tracert/tracert.h @@ -65,7 +65,7 @@ typedef struct _APPINFO SOCKET icmpSock; // socket descriptor SOCKADDR_IN source, dest; // source and destination address info PECHO_REPLY_HEADER SendPacket; // ICMP echo packet - PIPv4_HEADER RecvPacket; // return reveive packet + PIPv4_HEADER RecvPacket; // return receive packet BOOL bUsePerformanceCounter; // whether to use the high res performance counter LARGE_INTEGER TicksPerMs; // number of millisecs in relation to proc freq diff --git a/reactos/base/applications/rapps/available.c b/reactos/base/applications/rapps/available.c index 421eacde84d..b65586d2728 100644 --- a/reactos/base/applications/rapps/available.c +++ b/reactos/base/applications/rapps/available.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS Applications Manager * LICENSE: GPL - See COPYING in the top level directory * FILE: base/applications/rapps/available.c - * PURPOSE: Functions for working with availabled applications + * PURPOSE: Functions for working with available applications * PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org) * Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com) */ diff --git a/reactos/base/applications/rapps/loaddlg.c b/reactos/base/applications/rapps/loaddlg.c index 2b136a9f45d..bb398f84370 100644 --- a/reactos/base/applications/rapps/loaddlg.c +++ b/reactos/base/applications/rapps/loaddlg.c @@ -126,7 +126,7 @@ dlOnProgress(IBindStatusCallback* iface, /* send the current progress to the progress bar */ SendMessageW(Item, PBM_SETPOS, uiPercentage, 0); - /* format the bits and bytes into pretty and accesible units... */ + /* format the bits and bytes into pretty and accessible units... */ StrFormatByteSizeW(ulProgress, szProgress, _countof(szProgress)); StrFormatByteSizeW(ulProgressMax, szProgressMax, _countof(szProgressMax)); diff --git a/reactos/base/applications/rapps/resource.h b/reactos/base/applications/rapps/resource.h index d89933c2221..92f9a0da178 100644 --- a/reactos/base/applications/rapps/resource.h +++ b/reactos/base/applications/rapps/resource.h @@ -136,7 +136,7 @@ #define IDS_INFO_MODIFYPATH 295 #define IDS_INFO_INSTALLDATE 296 -/* Info for availabled apps */ +/* Info for available apps */ #define IDS_AINFO_VERSION 350 #define IDS_AINFO_DESCRIPTION 351 #define IDS_AINFO_SIZE 352 diff --git a/reactos/base/applications/rapps/winmain.c b/reactos/base/applications/rapps/winmain.c index d62e6262853..92c9bfa2e84 100644 --- a/reactos/base/applications/rapps/winmain.c +++ b/reactos/base/applications/rapps/winmain.c @@ -221,7 +221,7 @@ UpdateApplicationsList(INT EnumType) } else if (IS_AVAILABLE_ENUM(EnumType)) { - /* Enum availabled applications */ + /* Enum available applications */ EnumAvailableApplications(EnumType, EnumAvailableAppProc); } diff --git a/reactos/base/applications/rapps_new/available.cpp b/reactos/base/applications/rapps_new/available.cpp index ff789a11439..50e4f23be66 100644 --- a/reactos/base/applications/rapps_new/available.cpp +++ b/reactos/base/applications/rapps_new/available.cpp @@ -2,7 +2,7 @@ * PROJECT: ReactOS Applications Manager * LICENSE: GPL - See COPYING in the top level directory * FILE: base/applications/rapps_new/available.cpp - * PURPOSE: Functions for working with availabled applications + * PURPOSE: Functions for working with available applications * PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org) * Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com) */ diff --git a/reactos/base/applications/rapps_new/gui.cpp b/reactos/base/applications/rapps_new/gui.cpp index 417835bc150..891390f5231 100644 --- a/reactos/base/applications/rapps_new/gui.cpp +++ b/reactos/base/applications/rapps_new/gui.cpp @@ -1192,7 +1192,7 @@ private: } else if (IS_AVAILABLE_ENUM(EnumType)) { - /* Enum availabled applications */ + /* Enum available applications */ EnumAvailableApplications(EnumType, s_EnumAvailableAppProc); } diff --git a/reactos/base/applications/rapps_new/loaddlg.cpp b/reactos/base/applications/rapps_new/loaddlg.cpp index ccac39f79e5..ab4a20b1dd5 100644 --- a/reactos/base/applications/rapps_new/loaddlg.cpp +++ b/reactos/base/applications/rapps_new/loaddlg.cpp @@ -101,7 +101,7 @@ public: /* send the current progress to the progress bar */ SendMessageW(Item, PBM_SETPOS, uiPercentage, 0); - /* format the bits and bytes into pretty and accesible units... */ + /* format the bits and bytes into pretty and accessible units... */ StrFormatByteSizeW(ulProgress, szProgress, _countof(szProgress)); StrFormatByteSizeW(ulProgressMax, szProgressMax, _countof(szProgressMax)); diff --git a/reactos/base/applications/rapps_new/resource.h b/reactos/base/applications/rapps_new/resource.h index 07b1567cd2e..264c863522b 100644 --- a/reactos/base/applications/rapps_new/resource.h +++ b/reactos/base/applications/rapps_new/resource.h @@ -137,7 +137,7 @@ #define IDS_INFO_MODIFYPATH 295 #define IDS_INFO_INSTALLDATE 296 -/* Info for availabled apps */ +/* Info for available apps */ #define IDS_AINFO_VERSION 350 #define IDS_AINFO_DESCRIPTION 351 #define IDS_AINFO_SIZE 352 diff --git a/reactos/base/applications/sc/usage.c b/reactos/base/applications/sc/usage.c index 445863df49a..4bcf049f9de 100644 --- a/reactos/base/applications/sc/usage.c +++ b/reactos/base/applications/sc/usage.c @@ -33,7 +33,7 @@ VOID MainUsage(VOID) _T("\t interrogate : Sends a INTERROGATE control request to a service.\n") _T("\t continue : Sends a CONTINUE control request to a service.\n") _T("\t stop : Sends a STOP request to a service.\n") - _T("\t config : Changes the configuration of a service (persistant).\n") + _T("\t config : Changes the configuration of a service (persistent).\n") _T("\t description : Changes the description of a service.\n") _T("\t failure : Changes the actions taken by a service upon failure.\n") _T("\t qc : Queries the configuration information for a service.\n") @@ -48,7 +48,7 @@ VOID MainUsage(VOID) _T("\t GetKeyName : Gets the ServiceKeyName for a service.\n") _T("\t EnumDepend : Enumerates Service Dependencies.\n")); // "\n") -// "\tService Name Independant Commands:\n") +// "\tService Name Independent Commands:\n") // "\t boot : (ok | bad) Indicates whether the last boot should\n") // "\t be saved as the last-known-good boot configuration\n") // "\t Lock : Locks the SCM Database\n") diff --git a/reactos/base/applications/screensavers/logon/logon.c b/reactos/base/applications/screensavers/logon/logon.c index 182d6087eca..e83941dc93e 100644 --- a/reactos/base/applications/screensavers/logon/logon.c +++ b/reactos/base/applications/screensavers/logon/logon.c @@ -164,7 +164,7 @@ ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) } // This function is only called one time before opening the configuration dialog. -// Use it to show a message that no configuration is necesssary and return FALSE to indicate that no configuration dialog shall be opened. +// Use it to show a message that no configuration is necessary and return FALSE to indicate that no configuration dialog shall be opened. BOOL WINAPI RegisterDialogClasses(HANDLE hInst) diff --git a/reactos/base/applications/shutdown/shutdown.c b/reactos/base/applications/shutdown/shutdown.c index f82d744c6d3..986efcf20ec 100644 --- a/reactos/base/applications/shutdown/shutdown.c +++ b/reactos/base/applications/shutdown/shutdown.c @@ -268,7 +268,7 @@ int wmain(int argc, WCHAR *argv[]) return EXIT_FAILURE; } - /* Ensure that the timout amount is not too high or a negative number */ + /* Ensure that the timeout amount is not too high or a negative number */ if (opts.shutdown_delay > MAX_SHUTDOWN_TIMEOUT) { ConResPrintf(StdErr, IDS_ERROR_TIMEOUT, opts.shutdown_delay); diff --git a/reactos/base/applications/sndrec32/audio_membuffer.cpp b/reactos/base/applications/sndrec32/audio_membuffer.cpp index b2393461445..67d0e6790b3 100644 --- a/reactos/base/applications/sndrec32/audio_membuffer.cpp +++ b/reactos/base/applications/sndrec32/audio_membuffer.cpp @@ -19,7 +19,7 @@ audio_membuffer::alloc_mem_(unsigned int bytes) if (bytes == 0) return; - /* Checks previsiously alloc'd memory and frees it */ + /* Checks previously alloc'd memory and frees it */ if (audio_data) delete[] audio_data; @@ -99,7 +99,7 @@ audio_membuffer::truncate_(void) audio_data = newbuf; buf_size = bytes_received; - /* Buffer truncation successfull. Now the buffer size is exactly big + /* Buffer truncation successful. Now the buffer size is exactly big as much audio data was received */ } } diff --git a/reactos/base/applications/sndrec32/audio_membuffer.hpp b/reactos/base/applications/sndrec32/audio_membuffer.hpp index cfdea9b2fe4..e768134f8a7 100644 --- a/reactos/base/applications/sndrec32/audio_membuffer.hpp +++ b/reactos/base/applications/sndrec32/audio_membuffer.hpp @@ -178,11 +178,11 @@ class audio_membuffer : public audio_receiver, public audio_producer void alloc_seconds(float); /* resizes in bytes the current buffer, without discarding - previsiously audio data received */ + previously audio data received */ void resize_bytes(unsigned int); /* resizes in seconds the current buffer, without discarding - previsiously audio data received */ + previously audio data received */ void resize_seconds( unsigned int ); void resize_seconds( float ); diff --git a/reactos/base/applications/sndrec32/audio_resampler_acm.cpp b/reactos/base/applications/sndrec32/audio_resampler_acm.cpp index 27a30b8efda..443a4685618 100644 --- a/reactos/base/applications/sndrec32/audio_resampler_acm.cpp +++ b/reactos/base/applications/sndrec32/audio_resampler_acm.cpp @@ -42,7 +42,7 @@ audio_resampler_acm::init_(void) wformat_dst.nAvgBytesPerSec = audfmt_out.byte_rate(); wformat_dst.nBlockAlign = audfmt_out.block_align(); - /* Init acm structures completed successfull */ + /* Init acm structures completed successful */ } /* Public Functions */ diff --git a/reactos/base/applications/sndrec32/audio_wavein.cpp b/reactos/base/applications/sndrec32/audio_wavein.cpp index 5e5954e1a41..839f6738185 100644 --- a/reactos/base/applications/sndrec32/audio_wavein.cpp +++ b/reactos/base/applications/sndrec32/audio_wavein.cpp @@ -168,7 +168,7 @@ audio_wavein::close(void) /* Updating status */ status = WAVEIN_NOTREADY; - /* Wakeing up recording thread, so it can receive + /* Waking up recording thread, so it can receive the `MM_WIM_CLOSE' message then dies */ if (wakeup_recthread) SetEvent(wakeup_recthread); @@ -400,7 +400,7 @@ audio_wavein::recording_procedure(LPVOID arg) phdr->dwFlags = 0; SetEvent(_this->data_flushed_event); - /* The recording is gooing to stop, so the recording thread can go to sleep! */ + /* The recording is going to stop, so the recording thread can go to sleep! */ WaitForSingleObject(_this->wakeup_recthread, INFINITE); } } /* if WAVEIN_RECORDING || WAVEIN_FLUSHING */ diff --git a/reactos/base/applications/sndrec32/audio_wavein.hpp b/reactos/base/applications/sndrec32/audio_wavein.hpp index 0810649945f..44832d8651e 100644 --- a/reactos/base/applications/sndrec32/audio_wavein.hpp +++ b/reactos/base/applications/sndrec32/audio_wavein.hpp @@ -30,7 +30,7 @@ class audio_wavein about open recording, close, and sound data recorded */ static DWORD WINAPI recording_procedure(LPVOID); - /* When this event is signaled, then the previsiously created + /* When this event is signaled, then the previously created recording thread will wake up and start recording audio and will pass audio data to an `audio_receiver' object. */ HANDLE wakeup_recthread; diff --git a/reactos/base/applications/sndrec32/sndrec32.cpp b/reactos/base/applications/sndrec32/sndrec32.cpp index 18e23d15269..473f021731b 100644 --- a/reactos/base/applications/sndrec32/sndrec32.cpp +++ b/reactos/base/applications/sndrec32/sndrec32.cpp @@ -130,7 +130,7 @@ _tWinMain(HINSTANCE hInstance, text2_rect.right = REFRESHB_CX; text2_rect.bottom = REFRESHB_CY; - /* Retrieving defaul system font, and others system informations */ + /* Retrieving default system font, and others system informations */ SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &s_info, diff --git a/reactos/base/applications/sndvol32/dialog.c b/reactos/base/applications/sndvol32/dialog.c index f8cba721b4a..e7690b0dff9 100644 --- a/reactos/base/applications/sndvol32/dialog.c +++ b/reactos/base/applications/sndvol32/dialog.c @@ -459,12 +459,12 @@ LoadDialogCtrls( /* enumerate controls */ SndMixerEnumConnections(PrefContext->MixerWindow->Mixer, PrefContext->SelectedLine, EnumConnectionsCallback, (PVOID)PrefContext); - /* get last line seperator */ + /* get last line separator */ hDlgCtrl = GetDlgItem(PrefContext->MixerWindow->hWnd, IDC_LINE_SEP * PrefContext->Count); if (hDlgCtrl != NULL) { - /* hide last seperator */ + /* hide last separator */ ShowWindow(hDlgCtrl, SW_HIDE); } diff --git a/reactos/base/applications/sndvol32/sndvol32.c b/reactos/base/applications/sndvol32/sndvol32.c index 9a11aba30ad..b19f99e0f37 100644 --- a/reactos/base/applications/sndvol32/sndvol32.c +++ b/reactos/base/applications/sndvol32/sndvol32.c @@ -975,7 +975,7 @@ MainWindowProc(HWND hwnd, } - /* initialize perferences */ + /* initialize preferences */ ZeroMemory(&Preferences, sizeof(Preferences)); /* store mixer */ diff --git a/reactos/base/applications/taskmgr/graphctl.c b/reactos/base/applications/taskmgr/graphctl.c index 71f8d67ab03..95c5108acd4 100644 --- a/reactos/base/applications/taskmgr/graphctl.c +++ b/reactos/base/applications/taskmgr/graphctl.c @@ -434,7 +434,7 @@ void GraphCtrl_DrawPoint(TGraphCtrl* this) SRCCOPY); /* establish a rectangle over the right side of plot */ - /* which now needs to be cleaned up proir to adding the new point */ + /* which now needs to be cleaned up prior to adding the new point */ rectCleanUp = this->m_rectPlot; rectCleanUp.left = rectCleanUp.right - this->m_nShiftPixels; diff --git a/reactos/base/applications/taskmgr/perfdata.c b/reactos/base/applications/taskmgr/perfdata.c index 9d4df4ac0fa..1b6f7163160 100644 --- a/reactos/base/applications/taskmgr/perfdata.c +++ b/reactos/base/applications/taskmgr/perfdata.c @@ -632,7 +632,7 @@ BOOL PerfDataGetCommandLine(ULONG Index, LPWSTR lpCommandLine, ULONG nMaxCount) NULL); if (!result) { - /* Weird, after sucessfully reading the mem of that process + /* Weird, after successfully reading the mem of that process various times it fails now, forget it and bail out */ HeapFree(GetProcessHeap(), 0, new_entry); goto cleanup; diff --git a/reactos/base/applications/taskmgr/perfpage.c b/reactos/base/applications/taskmgr/perfpage.c index d37bc9e46b2..eb021d2ae38 100644 --- a/reactos/base/applications/taskmgr/perfpage.c +++ b/reactos/base/applications/taskmgr/perfpage.c @@ -99,7 +99,7 @@ void AdjustFrameSize(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference, InvalidateRect(hCntrl, NULL, TRUE); } -static void AdjustControlPostion(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference) +static void AdjustControlPosition(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference) { AdjustFrameSize(hCntrl, hDlg, nXDifference, nYDifference, 0); } @@ -256,18 +256,18 @@ PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) AdjustCntrlPos(IDS_TOTALS_PROCESS_COUNT, hDlg, 0, nYDifference); AdjustCntrlPos(IDS_TOTALS_THREAD_COUNT, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageCommitChargeTotalEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageCommitChargeLimitEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageCommitChargePeakEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageKernelMemoryTotalEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageKernelMemoryPagedEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageKernelMemoryNonPagedEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePagePhysicalMemoryTotalEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePagePhysicalMemoryAvailableEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePagePhysicalMemorySystemCacheEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageTotalsHandleCountEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageTotalsProcessCountEdit, hDlg, 0, nYDifference); - AdjustControlPostion(hPerformancePageTotalsThreadCountEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageCommitChargeTotalEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageCommitChargeLimitEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageCommitChargePeakEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageKernelMemoryTotalEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageKernelMemoryPagedEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageKernelMemoryNonPagedEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePagePhysicalMemoryTotalEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePagePhysicalMemoryAvailableEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePagePhysicalMemorySystemCacheEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageTotalsHandleCountEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageTotalsProcessCountEdit, hDlg, 0, nYDifference); + AdjustControlPosition(hPerformancePageTotalsThreadCountEdit, hDlg, 0, nYDifference); nXDifference += lastX; nYDifference += lastY; diff --git a/reactos/base/applications/taskmgr/taskmgr.h b/reactos/base/applications/taskmgr/taskmgr.h index b82f9705e96..c5da7f13fd5 100644 --- a/reactos/base/applications/taskmgr/taskmgr.h +++ b/reactos/base/applications/taskmgr/taskmgr.h @@ -100,7 +100,7 @@ extern int nOldWidth; /* Holds the previous client area width */ extern int nOldHeight; /* Holds the previous client area height */ extern TASKMANAGER_SETTINGS TaskManagerSettings; -/* Foward declarations of functions included in this code module: */ +/* Forward declarations of functions included in this code module: */ INT_PTR CALLBACK TaskManagerWndProc(HWND, UINT, WPARAM, LPARAM); BOOL OnCreate(HWND hWnd); void OnSize(WPARAM nType, int cx, int cy); diff --git a/reactos/base/services/eventlog/file.c b/reactos/base/services/eventlog/file.c index 1b889074692..95db1b38efa 100644 --- a/reactos/base/services/eventlog/file.c +++ b/reactos/base/services/eventlog/file.c @@ -825,7 +825,7 @@ LogfReadEvents(PLOGFILE LogFile, /* Go to the next event record */ /* - * NOTE: This implicitely supposes that all the other record numbers + * NOTE: This implicitly supposes that all the other record numbers * are consecutive (and do not jump than more than one unit); but if * it is not the case, then we would prefer here to call some * "get_next_record_number" function. diff --git a/reactos/base/services/svchost/svchost.c b/reactos/base/services/svchost/svchost.c index 73520c6a1db..01eaec28d12 100644 --- a/reactos/base/services/svchost/svchost.c +++ b/reactos/base/services/svchost/svchost.c @@ -138,10 +138,10 @@ BuildCommandOptions ( while ((*pch) && ((*pch != ' ') && (*pch != '\t'))) pch++; } - /* Now we have a space or quote deliminated name, terminate it */ + /* Now we have a space or quote delimited name, terminate it */ if (*pch) *pch++ = UNICODE_NULL; - /* Ok, so we have a string -- was it preceeded by a -K or /K? */ + /* Ok, so we have a string -- was it preceded by a -K or /K? */ if (pGroupName) { /* Yes it was, remember this, and don't overwrite it later */ diff --git a/reactos/base/services/tcpsvcs/chargen.c b/reactos/base/services/tcpsvcs/chargen.c index 9e45b727e86..2b5ab227d7e 100644 --- a/reactos/base/services/tcpsvcs/chargen.c +++ b/reactos/base/services/tcpsvcs/chargen.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS simple TCP/IP services * LICENSE: GPL - See COPYING in the top level directory * FILE: base/services/tcpsvcs/chargen.c - * PURPOSE: Sends continous lines of chars to the client + * PURPOSE: Sends continuous lines of chars to the client * COPYRIGHT: Copyright 2005 - 2008 Ged Murphy * */ diff --git a/reactos/base/services/tcpsvcs/qotd.c b/reactos/base/services/tcpsvcs/qotd.c index 614da3adfca..55c31969479 100644 --- a/reactos/base/services/tcpsvcs/qotd.c +++ b/reactos/base/services/tcpsvcs/qotd.c @@ -96,7 +96,7 @@ RetrieveQuote(SOCKET sock) lpStr = lpQuotes; for (i = 1; i <= quoteNum; i++) { - /* move past proceding quote */ + /* move past preceding quote */ lpStr++; if (i == quoteNum) diff --git a/reactos/base/services/telnetd/syslog.c b/reactos/base/services/telnetd/syslog.c index 1ee4499a921..a8b3f75c5cc 100644 --- a/reactos/base/services/telnetd/syslog.c +++ b/reactos/base/services/telnetd/syslog.c @@ -148,7 +148,7 @@ use_default: /****************************************************************************** * closelog * - * Close desriptor used to write to system logger. + * Close descriptor used to write to system logger. */ void closelog() { diff --git a/reactos/base/services/telnetd/syslog.h b/reactos/base/services/telnetd/syslog.h index ca87a1cb80f..9f11e1a3afa 100644 --- a/reactos/base/services/telnetd/syslog.h +++ b/reactos/base/services/telnetd/syslog.h @@ -166,7 +166,7 @@ CODE facilitynames[] = extern "C" { #endif -/* Close desriptor used to write to system logger. */ +/* Close descriptor used to write to system logger. */ extern void closelog (void); /* Open connection to system logger. */ diff --git a/reactos/base/setup/usetup/cabinet.h b/reactos/base/setup/usetup/cabinet.h index cbd7ed1b126..82392687d7e 100644 --- a/reactos/base/setup/usetup/cabinet.h +++ b/reactos/base/setup/usetup/cabinet.h @@ -143,7 +143,7 @@ typedef ULONG (*PCABINET_CODEC_UNCOMPRESS)(PVOID OutputBuffer, #define CS_NOMEMORY 0x0001 /* Not enough free memory */ #define CS_BADSTREAM 0x0002 /* Bad data stream */ -/* Codec indentifiers */ +/* Codec identifiers */ #define CAB_CODEC_RAW 0x00 #define CAB_CODEC_LZX 0x01 #define CAB_CODEC_MSZIP 0x02 diff --git a/reactos/base/setup/usetup/inicache.c b/reactos/base/setup/usetup/inicache.c index 0043e9d6eb5..16f3e2e4e0b 100644 --- a/reactos/base/setup/usetup/inicache.c +++ b/reactos/base/setup/usetup/inicache.c @@ -814,7 +814,7 @@ PINICACHEKEY IniCacheInsertKey( PINICACHESECTION Section, PINICACHEKEY AnchorKey, - INSERTATION_TYPE InsertationType, + INSERTION_TYPE InsertionType, PWCHAR Name, PWCHAR Data) { @@ -877,15 +877,15 @@ IniCacheInsertKey( Section->FirstKey = Key; Section->LastKey = Key; } - else if ((InsertationType == INSERT_FIRST) || - ((InsertationType == INSERT_BEFORE) && ((AnchorKey == NULL) || (AnchorKey == Section->FirstKey)))) + else if ((InsertionType == INSERT_FIRST) || + ((InsertionType == INSERT_BEFORE) && ((AnchorKey == NULL) || (AnchorKey == Section->FirstKey)))) { /* Insert at the head of the list */ Section->FirstKey->Prev = Key; Key->Next = Section->FirstKey; Section->FirstKey = Key; } - else if ((InsertationType == INSERT_BEFORE) && (AnchorKey != NULL)) + else if ((InsertionType == INSERT_BEFORE) && (AnchorKey != NULL)) { /* Insert before the anchor key */ Key->Next = AnchorKey; @@ -893,14 +893,14 @@ IniCacheInsertKey( AnchorKey->Prev->Next = Key; AnchorKey->Prev = Key; } - else if ((InsertationType == INSERT_LAST) || - ((InsertationType == INSERT_AFTER) && ((AnchorKey == NULL) || (AnchorKey == Section->LastKey)))) + else if ((InsertionType == INSERT_LAST) || + ((InsertionType == INSERT_AFTER) && ((AnchorKey == NULL) || (AnchorKey == Section->LastKey)))) { Section->LastKey->Next = Key; Key->Prev = Section->LastKey; Section->LastKey = Key; } - else if ((InsertationType == INSERT_AFTER) && (AnchorKey != NULL)) + else if ((InsertionType == INSERT_AFTER) && (AnchorKey != NULL)) { /* Insert after the anchor key */ Key->Next = AnchorKey->Next; diff --git a/reactos/base/setup/usetup/inicache.h b/reactos/base/setup/usetup/inicache.h index 6009f589615..3a26332ab92 100644 --- a/reactos/base/setup/usetup/inicache.h +++ b/reactos/base/setup/usetup/inicache.h @@ -69,7 +69,7 @@ typedef enum INSERT_BEFORE, INSERT_AFTER, INSERT_LAST -} INSERTATION_TYPE; +} INSERTION_TYPE; /* FUNCTIONS ****************************************************************/ @@ -115,7 +115,7 @@ PINICACHEKEY IniCacheInsertKey( PINICACHESECTION Section, PINICACHEKEY AnchorKey, - INSERTATION_TYPE InsertationType, + INSERTION_TYPE InsertionType, PWCHAR Name, PWCHAR Data); diff --git a/reactos/base/setup/usetup/interface/devinst.c b/reactos/base/setup/usetup/interface/devinst.c index 524463647d1..783998ecdae 100644 --- a/reactos/base/setup/usetup/interface/devinst.c +++ b/reactos/base/setup/usetup/interface/devinst.c @@ -163,7 +163,7 @@ InstallDriver( (wcslen(Driver) + 1) * sizeof(WCHAR)); if (NT_SUCCESS(Status)) { - /* Restart the device, so it will use the driver we registred */ + /* Restart the device, so it will use the driver we registered */ deviceInstalled = ResetDevice(DeviceId); } diff --git a/reactos/base/setup/usetup/interface/usetup.c b/reactos/base/setup/usetup/interface/usetup.c index 5f0371757aa..9850a44e38b 100644 --- a/reactos/base/setup/usetup/interface/usetup.c +++ b/reactos/base/setup/usetup/interface/usetup.c @@ -1488,7 +1488,7 @@ IsDiskSizeValid(PPARTENTRY PartEntry) if (size < RequiredPartitionDiskSpace) { - /* partition is too small so ask for another partion */ + /* partition is too small so ask for another partition */ DPRINT1("Partition is too small (size: %I64u MB), required disk space is %lu MB\n", size, RequiredPartitionDiskSpace); return FALSE; } @@ -3122,7 +3122,7 @@ CheckFileSystemPage(PINPUT_RECORD Ir) DPRINT1("CheckFileSystemPage -- PartitionType: 0x%02X ; FileSystemName: %S\n", PartEntry->PartitionType, (CurrentFileSystem ? CurrentFileSystem->FileSystemName : L"n/a")); - /* HACK: Do not try to check a partition with an unknown filesytem */ + /* HACK: Do not try to check a partition with an unknown filesystem */ if (CurrentFileSystem == NULL) { PartEntry->NeedsCheck = FALSE; @@ -3264,7 +3264,7 @@ InstallDirectoryPage(PINPUT_RECORD Ir) WCHAR c; ULONG Length; - /* We do not need the filsystem list any more */ + /* We do not need the filesystem list any more */ if (FileSystemList != NULL) { DestroyFileSystemList(FileSystemList); diff --git a/reactos/base/setup/usetup/partlist.c b/reactos/base/setup/usetup/partlist.c index cec59c1beee..6514d0c016f 100644 --- a/reactos/base/setup/usetup/partlist.c +++ b/reactos/base/setup/usetup/partlist.c @@ -1359,7 +1359,7 @@ AddDiskToList( } else { - DPRINT1("No matching aligment found! Partition 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart); + DPRINT1("No matching alignment found! Partition 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart); } } else diff --git a/reactos/base/setup/usetup/partlist.h b/reactos/base/setup/usetup/partlist.h index 0a7761dbd14..bf2bca235e6 100644 --- a/reactos/base/setup/usetup/partlist.h +++ b/reactos/base/setup/usetup/partlist.h @@ -207,7 +207,7 @@ typedef struct { LIST_ENTRY ListEntry; ULONG DiskNumber; - ULONG Idendifier; + ULONG Identifier; ULONG Signature; } BIOS_DISK, *PBIOS_DISK; diff --git a/reactos/base/setup/usetup/progress.c b/reactos/base/setup/usetup/progress.c index d41c9f07a2b..3aa9e2a99e6 100644 --- a/reactos/base/setup/usetup/progress.c +++ b/reactos/base/setup/usetup/progress.c @@ -322,7 +322,7 @@ ProgressSetStep( /* Calculate new percentage */ NewPercent = (ULONG)(((100.0 * (float)Bar->CurrentStep) / (float)Bar->StepCount) + 0.5); - /* Redraw precentage if changed */ + /* Redraw percentage if changed */ if (Bar->Percent != NewPercent) { Bar->Percent = NewPercent; diff --git a/reactos/base/setup/welcome/welcome.c b/reactos/base/setup/welcome/welcome.c index bae244ac5e1..9c053c99e88 100644 --- a/reactos/base/setup/welcome/welcome.c +++ b/reactos/base/setup/welcome/welcome.c @@ -630,7 +630,7 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam) PATCOPY); SelectObject(hdc, hOldBrush); - /* Draw dark verical line */ + /* Draw dark vertical line */ hPen = CreatePen(PS_SOLID, 0, DARK_BLUE); hOldPen = (HPEN)SelectObject(hdc, hPen); MoveToEx(hdc, rcRightPanel.left, rcRightPanel.top, NULL); diff --git a/reactos/base/shell/cmd/assoc.c b/reactos/base/shell/cmd/assoc.c index 133785b69df..8e3e5fc9591 100644 --- a/reactos/base/shell/cmd/assoc.c +++ b/reactos/base/shell/cmd/assoc.c @@ -14,7 +14,7 @@ * TODO: * - PrintAllAssociations might could be optimized to not fetch all registry subkeys under 'Classes', just the ones that start with '.' * - Make sure that non-administrator users can list associations, and get appropriate error messages when they don't have sufficient - * priveleges to perform an operation + * privileges to perform an operation */ #include "precomp.h" diff --git a/reactos/base/shell/cmd/batch.c b/reactos/base/shell/cmd/batch.c index e2f7d360c57..bf36ddb6100 100644 --- a/reactos/base/shell/cmd/batch.c +++ b/reactos/base/shell/cmd/batch.c @@ -30,7 +30,7 @@ * implement proper BATCH file nesting and other improvements. * * 16 Jul 1998 (John P Price ) - * Seperated commands into individual files. + * Separated commands into individual files. * * 19 Jul 1998 (Hans B Pufal) [HBP_001] * Preserve state of echo flag across batch calls. @@ -104,7 +104,7 @@ LPTSTR FindArg(TCHAR Char, BOOL *IsParam0) /* - * Batch_params builds a parameter list in newlay allocated memory. + * Batch_params builds a parameter list in newly allocated memory. * The parameters consist of null terminated strings with a final * NULL character signalling the end of the parameters. * diff --git a/reactos/base/shell/cmd/call.c b/reactos/base/shell/cmd/call.c index 5eb9639ef12..56b61dbe2e6 100644 --- a/reactos/base/shell/cmd/call.c +++ b/reactos/base/shell/cmd/call.c @@ -8,7 +8,7 @@ * started. * * 16 Jul 1998 (John P Price) - * Seperated commands into individual files. + * Separated commands into individual files. * * 27-Jul-1998 (John P Price ) * added config.h include diff --git a/reactos/base/shell/cmd/choice.c b/reactos/base/shell/cmd/choice.c index 1cfaa5641e4..70d8d430bb5 100644 --- a/reactos/base/shell/cmd/choice.c +++ b/reactos/base/shell/cmd/choice.c @@ -47,7 +47,7 @@ GetCharacterTimeout (LPTCH ch, DWORD dwMilliseconds) hInput = GetStdHandle (STD_INPUT_HANDLE); - //if the timeout experied return GC_TIMEOUT + //if the timeout expired return GC_TIMEOUT if (WaitForSingleObject (hInput, dwMilliseconds) == WAIT_TIMEOUT) return GC_TIMEOUT; diff --git a/reactos/base/shell/cmd/cmd.c b/reactos/base/shell/cmd/cmd.c index 8b0640b6f28..3c5914c6198 100644 --- a/reactos/base/shell/cmd/cmd.c +++ b/reactos/base/shell/cmd/cmd.c @@ -81,7 +81,7 @@ * added showcmds function to show commands and options available * * 07-Aug-1998 (John P Price ) - * Fixed carrage return output to better match MSDOS with echo + * Fixed carriage return output to better match MSDOS with echo * on or off. (marked with "JPP 19980708") * * 07-Dec-1998 (Eric Kohl) @@ -137,8 +137,8 @@ * * 06-jul-2005 (Magnus Olsen ) * translate '%errorlevel%' to the internal value. - * Add proper memmory alloc ProcessInput, the error - * handling for memmory handling need to be improve + * Add proper memory alloc ProcessInput, the error + * handling for memory handling need to be improve */ #include "precomp.h" @@ -181,7 +181,7 @@ WORD wDefColor; /* default color */ * insert commas into a number */ INT -ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator) +ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeparator) { TCHAR temp[39]; /* maximum length with nNumberGroups == 1 */ UINT n, iTarget; @@ -192,11 +192,11 @@ ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator) n = 0; iTarget = nNumberGroups; if (!nNumberGroups) - bPutSeperator = FALSE; + bPutSeparator = FALSE; do { - if (iTarget == n && bPutSeperator) + if (iTarget == n && bPutSeparator) { iTarget += nNumberGroups + 1; temp[38 - n++] = cThousandSeparator; @@ -321,7 +321,7 @@ Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd) TRACE ("Execute: \'%s\' \'%s\'\n", debugstr_aw(First), debugstr_aw(Rest)); /* Though it was already parsed once, we have a different set of rules - for parsing before we pass to CreateProccess */ + for parsing before we pass to CreateProcess */ if (First[0] == _T('/') || (First[0] && First[1] == _T(':'))) { /* Use the entire first word as the program name (no change) */ @@ -1785,7 +1785,7 @@ static VOID Cleanup() ParseCommandLine (_T("\\cmdexit.bat")); } -#ifdef FEATURE_DIECTORY_STACK +#ifdef FEATURE_DIRECTORY_STACK /* destroy directory stack */ DestroyDirectoryStack (); #endif diff --git a/reactos/base/shell/cmd/cmd.h b/reactos/base/shell/cmd/cmd.h index c1018b406aa..a53d65675ac 100644 --- a/reactos/base/shell/cmd/cmd.h +++ b/reactos/base/shell/cmd/cmd.h @@ -100,7 +100,7 @@ INT cmd_cls (LPTSTR); /* Prototypes for CMD.C */ -INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator); +INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeparator); HANDLE RunFile(DWORD, LPTSTR, LPTSTR, LPTSTR, INT); INT ParseCommandLine(LPTSTR); struct _PARSED_COMMAND; diff --git a/reactos/base/shell/cmd/cmdinput.c b/reactos/base/shell/cmd/cmdinput.c index 9513277b8dd..b9d44693d42 100644 --- a/reactos/base/shell/cmd/cmdinput.c +++ b/reactos/base/shell/cmd/cmdinput.c @@ -41,7 +41,7 @@ * printf(str). Don't ask how I find em just be glad I do :) * * 7/12/97 (Tim Norman) - * Note: above changes pre-empted Steffan's ctrl-break checking. + * Note: above changes preempted Steffan's ctrl-break checking. * * 7/7/97 (Marc Desrochers) * rewrote a new findxy() because the new dir() used it. This @@ -76,7 +76,7 @@ * to type something else in insert mode, it crashed. * * 07-Aug-1998 (John P Price ) - * Fixed carrage return output to better match MSDOS with echo + * Fixed carriage return output to better match MSDOS with echo * on or off.(marked with "JPP 19980708") * * 13-Dec-1998 (Eric Kohl) diff --git a/reactos/base/shell/cmd/cmdtable.c b/reactos/base/shell/cmd/cmdtable.c index 7c13c30ac4c..839030bcae3 100644 --- a/reactos/base/shell/cmd/cmdtable.c +++ b/reactos/base/shell/cmd/cmdtable.c @@ -8,7 +8,7 @@ * started. * New file to keep the internal command table. I plan on * getting rid of the table real soon now and replacing it - * with a dynamic mechnism. + * with a dynamic mechanism. * * 27 Jul 1998 John P. Price * added config.h include diff --git a/reactos/base/shell/cmd/copy.c b/reactos/base/shell/cmd/copy.c index 7f42a4b7564..40bf43eda0d 100644 --- a/reactos/base/shell/cmd/copy.c +++ b/reactos/base/shell/cmd/copy.c @@ -39,8 +39,8 @@ enum { COPY_ASCII = 0x001, /* /A */ COPY_DECRYPT = 0x004, /* /D */ - COPY_VERIFY = 0x008, /* /V : Dummy, Never will be Impleneted */ - COPY_SHORTNAME = 0x010, /* /N : Dummy, Never will be Impleneted */ + COPY_VERIFY = 0x008, /* /V : Dummy, Never will be Implemented */ + COPY_SHORTNAME = 0x010, /* /N : Dummy, Never will be Implemented */ COPY_NO_PROMPT = 0x020, /* /Y */ COPY_PROMPT = 0x040, /* /-Y */ COPY_RESTART = 0x080, /* /Z */ diff --git a/reactos/base/shell/cmd/del.c b/reactos/base/shell/cmd/del.c index b9c342dd5a6..4fa8ad8632b 100644 --- a/reactos/base/shell/cmd/del.c +++ b/reactos/base/shell/cmd/del.c @@ -354,12 +354,12 @@ INT CommandDelete (LPTSTR param) LPTSTR *arg = NULL; INT args; INT i; - INT nEvalArgs = 0; /* nunber of evaluated arguments */ + INT nEvalArgs = 0; /* number of evaluated arguments */ DWORD dwFlags = 0; DWORD dwAttrFlags = 0; DWORD dwFiles = 0; LONG ch; - TCHAR szOrginalArg[MAX_PATH]; + TCHAR szOriginalArg[MAX_PATH]; /*checks the first two chars of param to see if it is /? this however allows the following command to not show help @@ -511,13 +511,13 @@ INT CommandDelete (LPTSTR param) if (_tcslen(arg[i]) == 2 && arg[i][1] == _T(':')) { /* Check for C: D: ... */ - GetRootPath(arg[i], szOrginalArg, MAX_PATH); + GetRootPath(arg[i], szOriginalArg, MAX_PATH); } else { - _tcscpy(szOrginalArg,arg[i]); + _tcscpy(szOriginalArg,arg[i]); } - dwFiles += ProcessDirectory(szOrginalArg, &dwFlags, dwAttrFlags); + dwFiles += ProcessDirectory(szOriginalArg, &dwFlags, dwAttrFlags); } freep (arg); diff --git a/reactos/base/shell/cmd/dir.c b/reactos/base/shell/cmd/dir.c index 037887d06b2..6f2b8de1ab0 100644 --- a/reactos/base/shell/cmd/dir.c +++ b/reactos/base/shell/cmd/dir.c @@ -122,7 +122,7 @@ * 27-Feb-2005 (Konstantinos Paliouras ) * Implemented all the switches that were missing, and made * the ros dir very similar to windows dir. Major part of - * the code is rewritten. /p is removed, to be rewriten in + * the code is rewritten. /p is removed, to be rewritten in * the main cmd code. * * 1-Jul-2004 (Brandon Turner ) @@ -165,7 +165,7 @@ enum EOrderBy typedef struct _DirSwitchesFlags { BOOL bBareFormat; /* Bare Format */ - BOOL bTSeperator; /* Thousands seperator */ + BOOL bTSeparator; /* Thousands separator */ BOOL bWideList; /* Wide list format */ BOOL bWideListColSort; /* Wide list format but sorted by column */ BOOL bLowerCase; /* Uses lower case */ @@ -215,7 +215,7 @@ typedef BOOL (WINAPI *PGETFREEDISKSPACEEX)(LPCTSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER); /* Globally save the # of dirs, files and bytes, - * probabaly later pass them to functions. Rob Lake */ + * probably later pass them to functions. Rob Lake */ static ULONG recurse_dir_cnt; static ULONG recurse_file_cnt; static ULONGLONG recurse_bytes; @@ -244,8 +244,8 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & s LPDIRSWITCHFLAGS lpFlags) /* [IN/OUT] The flags after calculating switches */ { TCHAR cCurSwitch; /* The current switch */ - TCHAR cCurChar; /* Current examing character */ - TCHAR cCurUChar; /* Current upper examing character */ + TCHAR cCurChar; /* Current examined character */ + TCHAR cCurUChar; /* Current upper examined character */ BOOL bNegative; /* Negative switch */ BOOL bPNegative; /* Negative switch parameter */ BOOL bIntoQuotes; /* A flag showing if we are in quotes (") */ @@ -326,7 +326,7 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & s else if (cCurUChar == _T('B')) lpFlags->bBareFormat = ! bNegative; else if (cCurUChar == _T('C')) - lpFlags->bTSeperator = ! bNegative; + lpFlags->bTSeparator = ! bNegative; else if (cCurUChar == _T('W')) lpFlags->bWideList = ! bNegative; else if (cCurUChar == _T('D')) @@ -414,7 +414,7 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & s /* Check if there are no more switch parameters */ if ((cCurChar == _T('/')) || _istspace(cCurChar)) { - /* Wrong desicion path, reprocess current character */ + /* Wrong decision path, reprocess current character */ cCurSwitch = _T(' '); continue; } @@ -528,7 +528,7 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & s } - /* We check if we calculated the negative value and realese the flag */ + /* We check if we calculated the negative value and release the flag */ if ((cCurChar != _T('-')) && bPNegative) bPNegative = FALSE; } @@ -777,10 +777,10 @@ PrintSummary(LPTSTR szPath, /* Print recursive specific results */ - /* Take this code offline to fix /S does not print duoble info */ + /* Take this code offline to fix /S does not print double info */ if (TotalSummary && lpFlags->bRecursive) { - ConvertULargeInteger(u64Bytes, szBuffer, sizeof(szBuffer), lpFlags->bTSeperator); + ConvertULargeInteger(u64Bytes, szBuffer, sizeof(szBuffer), lpFlags->bTSeparator); LoadString(CMD_ModuleHandle, STRING_DIR_HELP5, szMsg, ARRAYSIZE(szMsg)); DirPrintf(lpFlags, szMsg, ulFiles, szBuffer); } @@ -789,7 +789,7 @@ PrintSummary(LPTSTR szPath, /* Print File Summary */ /* Condition to print summary is: If we are not in bare format and if we have results! */ - ConvertULargeInteger(u64Bytes, szBuffer, 20, lpFlags->bTSeperator); + ConvertULargeInteger(u64Bytes, szBuffer, 20, lpFlags->bTSeparator); LoadString(CMD_ModuleHandle, STRING_DIR_HELP8, szMsg, ARRAYSIZE(szMsg)); DirPrintf(lpFlags, szMsg, ulFiles, szBuffer); } @@ -798,7 +798,7 @@ PrintSummary(LPTSTR szPath, if (!lpFlags->bRecursive || TotalSummary) { GetUserDiskFreeSpace(szPath, &uliFree); - ConvertULargeInteger(uliFree.QuadPart, szBuffer, sizeof(szBuffer), lpFlags->bTSeperator); + ConvertULargeInteger(uliFree.QuadPart, szBuffer, sizeof(szBuffer), lpFlags->bTSeparator); LoadString(CMD_ModuleHandle, STRING_DIR_HELP6, szMsg, ARRAYSIZE(szMsg)); DirPrintf(lpFlags, szMsg, ulDirs, szBuffer); } @@ -891,7 +891,7 @@ DirPrintNewList(PDIRFINDINFO ptrFiles[], /* [IN]Files' Info */ iSizeFormat = 14; u64FileSize.HighPart = ptrFiles[i]->stFindInfo.nFileSizeHigh; u64FileSize.LowPart = ptrFiles[i]->stFindInfo.nFileSizeLow; - ConvertULargeInteger(u64FileSize.QuadPart, szSize, 20, lpFlags->bTSeperator); + ConvertULargeInteger(u64FileSize.QuadPart, szSize, 20, lpFlags->bTSeparator); } /* Calculate short name */ @@ -915,7 +915,7 @@ DirPrintNewList(PDIRFINDINFO ptrFiles[], /* [IN]Files' Info */ ptrCurStream = ptrFiles[i]->ptrHead; while (ptrCurStream) { - ConvertULargeInteger(ptrCurStream->stStreamInfo.StreamSize.QuadPart, szSize, 20, lpFlags->bTSeperator); + ConvertULargeInteger(ptrCurStream->stStreamInfo.StreamSize.QuadPart, szSize, 20, lpFlags->bTSeparator); /* Print the line */ DirPrintf(lpFlags, _T("%10s %-6s %*s%s %s%s\n"), @@ -958,7 +958,7 @@ DirPrintWideList(PDIRFINDINFO ptrFiles[], /* [IN] Files' Info */ { if (ptrFiles[i]->stFindInfo.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - /* Directories need 2 additinal characters for brackets */ + /* Directories need 2 additional characters for brackets */ if ((_tcslen(ptrFiles[i]->stFindInfo.cFileName) + 2) > iLongestName) iLongestName = _tcslen(ptrFiles[i]->stFindInfo.cFileName) + 2; } @@ -1062,7 +1062,7 @@ DirPrintOldList(PDIRFINDINFO ptrFiles[], /* [IN] Files' Info */ iSizeFormat = 17; u64FileSize.HighPart = ptrFiles[i]->stFindInfo.nFileSizeHigh; u64FileSize.LowPart = ptrFiles[i]->stFindInfo.nFileSizeLow; - ConvertULargeInteger(u64FileSize.QuadPart, szSize, 20, lpFlags->bTSeperator); + ConvertULargeInteger(u64FileSize.QuadPart, szSize, 20, lpFlags->bTSeparator); } /* Format date and time */ @@ -1185,7 +1185,7 @@ CompareFiles(PDIRFINDINFO lpFile1, /* [IN] A pointer to WIN32_FIND_DATA of int i; long iComp = 0; /* The comparison result */ - /* Calculate critiries by order given from user */ + /* Calculate criteria by order given from user */ for (i = 0;i < lpFlags->stOrderBy.sCriteriaCount;i++) { @@ -1199,7 +1199,7 @@ CompareFiles(PDIRFINDINFO lpFile1, /* [IN] A pointer to WIN32_FIND_DATA of u64File2.LowPart = lpFile2->stFindInfo.nFileSizeLow; u64File2.HighPart = lpFile2->stFindInfo.nFileSizeHigh; - /* In case that differnce is too big for a long */ + /* In case that difference is too big for a long */ if (u64File1.QuadPart < u64File2.QuadPart) iComp = -1; else if (u64File1.QuadPart > u64File2.QuadPart) @@ -1248,7 +1248,7 @@ CompareFiles(PDIRFINDINFO lpFile1, /* [IN] A pointer to WIN32_FIND_DATA of break; } - /* In case that differnce is too big for a long */ + /* In case that difference is too big for a long */ if (u64File1.QuadPart < u64File2.QuadPart) iComp = -1; else if (u64File1.QuadPart > u64File2.QuadPart) @@ -1325,12 +1325,12 @@ DirList(LPTSTR szPath, /* [IN] The path that dir starts */ { BOOL fPoint; /* If szPath is a file with extension fPoint will be True*/ HANDLE hSearch; /* The handle of the search */ - HANDLE hRecSearch; /* The handle for searching recursivly */ + HANDLE hRecSearch; /* The handle for searching recursively */ HANDLE hStreams; /* The handle for alternate streams */ WIN32_FIND_DATA wfdFileInfo; /* The info of file that found */ PDIRFINDINFO * ptrFileArray; /* An array of pointers with all the files */ PDIRFINDLISTNODE ptrStartNode; /* The pointer to the first node */ - PDIRFINDLISTNODE ptrNextNode; /* A pointer used for relatives refernces */ + PDIRFINDLISTNODE ptrNextNode; /* A pointer used for relatives references */ TCHAR szFullPath[MAX_PATH]; /* The full path that we are listing with trailing \ */ TCHAR szSubPath[MAX_PATH]; LPTSTR pszFilePart; @@ -1607,8 +1607,8 @@ DirList(LPTSTR szPath, /* [IN] The path that dir starts */ recurse_bytes += u64CountBytes; /* Do the recursive job if requested - the recursive is be done on ALL(indepent of their attribs) - directoried of the current one.*/ + the recursive is be done on ALL(independent of their attribs) + directories of the current one.*/ if (lpFlags->bRecursive) { /* The new search is involving any *.* file */ @@ -1674,7 +1674,7 @@ CommandDir(LPTSTR rest) stFlags.bPause = FALSE; stFlags.bRecursive = FALSE; stFlags.bShortName = FALSE; - stFlags.bTSeperator = TRUE; + stFlags.bTSeparator = TRUE; stFlags.bUser = FALSE; stFlags.bWideList = FALSE; stFlags.bWideListColSort = FALSE; @@ -1736,7 +1736,7 @@ CommandDir(LPTSTR rest) int i; TRACE("Attributes mask/value %x/%x\n",stFlags.stAttribs.dwAttribMask,stFlags.stAttribs.dwAttribVal ); TRACE("(B) Bare format : %i\n", stFlags.bBareFormat ); - TRACE("(C) Thousand : %i\n", stFlags.bTSeperator ); + TRACE("(C) Thousand : %i\n", stFlags.bTSeparator ); TRACE("(W) Wide list : %i\n", stFlags.bWideList ); TRACE("(D) Wide list sort by column : %i\n", stFlags.bWideListColSort ); TRACE("(L) Lowercase : %i\n", stFlags.bLowerCase ); diff --git a/reactos/base/shell/cmd/filecomp.c b/reactos/base/shell/cmd/filecomp.c index 7cbf771d900..060b2122c02 100644 --- a/reactos/base/shell/cmd/filecomp.c +++ b/reactos/base/shell/cmd/filecomp.c @@ -658,7 +658,7 @@ VOID CompleteFilename (LPTSTR strIN, BOOL bNext, LPTSTR strOut, UINT cusor) return; } - /* aseemble a list of all files names */ + /* assemble a list of all files names */ do { FileName * oldFileList = FileList; diff --git a/reactos/base/shell/cmd/files.txt b/reactos/base/shell/cmd/files.txt index 0bac737e020..7c93d1926f7 100644 --- a/reactos/base/shell/cmd/files.txt +++ b/reactos/base/shell/cmd/files.txt @@ -1,11 +1,11 @@ Archive Contents ~~~~~~~~~~~~~~~~ files.txt This file list -history.txt History of revsions. Not to date. see svn.reactos.com for more info. +history.txt History of revisions. Not to date. see svn.reactos.com for more info. license.txt GNU license - applies to all files named here readme.txt General shell info -readme2.txt Techincal shell info -todo.txt Things that need to be implmented or fixed(including bugs) +readme2.txt Technical shell info +todo.txt Things that need to be implemented or fixed(including bugs) alias.c Alias code alias.h Alias header file diff --git a/reactos/base/shell/cmd/for.c b/reactos/base/shell/cmd/for.c index 44540030280..e410b23a0b0 100644 --- a/reactos/base/shell/cmd/for.c +++ b/reactos/base/shell/cmd/for.c @@ -8,7 +8,7 @@ * Started. * * 16-Jul-1998 (John P Price) - * Seperated commands into individual files. + * Separated commands into individual files. * * 19-Jul-1998 (Hans B Pufal) * Implementation of FOR. diff --git a/reactos/base/shell/cmd/goto.c b/reactos/base/shell/cmd/goto.c index 293f74b1f10..5b053b1137a 100644 --- a/reactos/base/shell/cmd/goto.c +++ b/reactos/base/shell/cmd/goto.c @@ -7,7 +7,7 @@ * started. * * 16 Jul 1998 (John P Price) - * Seperated commands into individual files. + * Separated commands into individual files. * * 27-Jul-1998 (John P Price ) * added config.h include diff --git a/reactos/base/shell/cmd/history.txt b/reactos/base/shell/cmd/history.txt index 2b4d897e27f..d701fbabf9f 100644 --- a/reactos/base/shell/cmd/history.txt +++ b/reactos/base/shell/cmd/history.txt @@ -148,7 +148,7 @@ o Fixed bug that caused dir *.ext/X not to work (no spaces o Added wildcard support for DEL command o Added prompt and help switch for DEL command, /P and /? respectively. -o Added support for /C when envoking the shell +o Added support for /C when invoking the shell o Added /P support when Kernel loads shell. This means the shell now is permanent and runs the autoexec.bat (/E is not implemented) @@ -261,7 +261,7 @@ o Added display of available internal commands and options at startup. 29 Jul 1998 (Rob Lake rlake@cs.mun.ca) ~~~~~~~~~~~~~~~~~~~~~~ o changed date.c and time.c, and wrote datefunc.c and timefunc.c to - impliment _dos_getdate, _dos_setdate, _dos_gettime and _dos_settime. + implement _dos_getdate, _dos_setdate, _dos_gettime and _dos_settime. This is the first of many steps to make the shell compatible under Pacific C. @@ -300,7 +300,7 @@ o call.c: added lines to initialize for pointers. This fixed the 07-Aug-1998 (John P Price ) ~~~~~~~~~~~~~~~~~~~~~~ -o Fixed carrage return output to better match MSDOS with echo on or off. +o Fixed carriage return output to better match MSDOS with echo on or off. 07-Dec-1998 ReactOS CMD version 0.0.1 (Eric Kohl) diff --git a/reactos/base/shell/cmd/if.c b/reactos/base/shell/cmd/if.c index d2e83e40dd7..72688ce3a41 100644 --- a/reactos/base/shell/cmd/if.c +++ b/reactos/base/shell/cmd/if.c @@ -8,7 +8,7 @@ * started. * * 16 Jul 1998 (John P Price) - * Seperated commands into individual files. + * Separated commands into individual files. * * 27-Jul-1998 (John P Price ) * added config.h include diff --git a/reactos/base/shell/cmd/internal.c b/reactos/base/shell/cmd/internal.c index 92cea75a61a..4e14daf5273 100644 --- a/reactos/base/shell/cmd/internal.c +++ b/reactos/base/shell/cmd/internal.c @@ -146,7 +146,7 @@ INT GetRootPath("C:",outbuffer,chater size of outbuffer); the first param can have any size, if the the two frist letter are not a drive with : it will get Currentpath on - current drive exacly as GetCurrentDirectory does. + current drive exactly as GetCurrentDirectory does. */ INT GetRootPath(TCHAR *InPath,TCHAR *OutPath,INT size) @@ -281,7 +281,7 @@ INT cmd_chdir (LPTSTR param) #ifdef INCLUDE_CMD_MKDIR -/* Helper funtion for mkdir to make directories in a path. +/* Helper function for mkdir to make directories in a path. Dont use the api to decrease depence on libs */ BOOL MakeFullPath(TCHAR * DirPath) @@ -466,7 +466,7 @@ INT cmd_rmdir (LPTSTR param) if (RD_SUB) { - /* ask if they want to delete evrything in the folder */ + /* ask if they want to delete everything in the folder */ if (!RD_QUIET) { res = FilePromptYNA (STRING_DEL_HELP2); diff --git a/reactos/base/shell/cmd/lang/en-US.rc b/reactos/base/shell/cmd/lang/en-US.rc index 7b336613691..d3743e700f2 100644 --- a/reactos/base/shell/cmd/lang/en-US.rc +++ b/reactos/base/shell/cmd/lang/en-US.rc @@ -140,7 +140,7 @@ ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...\n\n\ STRING_DEL_HELP4 " %lu files deleted\n" STRING_DELAY_HELP "pause for n seconds or milliseconds\n\ DELAY [/m]n\n\n\ - /m specifiy than n are milliseconds\n\ + /m specify than n are milliseconds\n\ otherwise n are seconds\n" STRING_DIR_HELP1 "DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]\n\ [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]\n\n\ @@ -274,7 +274,7 @@ MOVE [/N][drive:][path]dirname1 dirname2\n\n\ /N Nothing. Do everything but move files or directories.\n\n\ Current limitations:\n\ - You can't move a file or directory from one drive to another.\n" - STRING_MSGBOX_HELP "display a message box and return user responce\n\n\ + STRING_MSGBOX_HELP "display a message box and return user response\n\n\ MSGBOX type ['title'] prompt\n\n\ type button displayed\n\ possible values are: OK, OKCANCEL,\n\ @@ -396,7 +396,7 @@ TIMER [ON|OFF] [/S] [/n] [/Fn]\n\n\ OFF set stopwatch OFF\n\ /S Split time. Return stopwatch split\n\ time without changing its value\n\ - /n Specifiy the stopwatch number.\n\ + /n Specify the stopwatch number.\n\ Stopwatches available are 0 to 9\n\ If it is not specified default is 1\n\ /Fn Format for output\n\ @@ -440,14 +440,14 @@ Updates are available at: http://www.reactos.org" STRING_VOL_HELP3 " Volume Serial Number is %04X-%04X\n" STRING_VOL_HELP4 "Displays the disk volume label and serial number, if they exist.\n\nVOL [drive:]" STRING_WINDOW_HELP1 "change console window aspect\n\n\ -WINDOW [/POS[=]left,top,width,heigth]\n\ +WINDOW [/POS[=]left,top,width,height]\n\ [MIN|MAX|RESTORE] ['title']\n\n\ /POS specify window placement and dimensions\n\ MIN minimize the window\n\ MAX maximize the window\n\ RESTORE restore the window" STRING_WINDOW_HELP2 "change console window aspect\n\n\ -ACTIVATE 'window' [/POS[=]left,top,width,heigth]\n\ +ACTIVATE 'window' [/POS[=]left,top,width,height]\n\ [MIN|MAX|RESTORE] ['title']\n\n\ window tile of window on which perform actions\n\ /POS specify window placement and dimensions\n\ diff --git a/reactos/base/shell/cmd/misc.c b/reactos/base/shell/cmd/misc.c index f2986c48921..cfe317cd337 100644 --- a/reactos/base/shell/cmd/misc.c +++ b/reactos/base/shell/cmd/misc.c @@ -269,7 +269,7 @@ static BOOL expand (LPINT ac, LPTSTR **arg, LPCTSTR pattern) } /* - * split - splits a line up into separate arguments, deliminators + * split - splits a line up into separate arguments, delimiters * are spaces and slashes ('/'). */ LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards, BOOL handle_plus) @@ -363,7 +363,7 @@ LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards, BOOL handle_plus) } /* - * splitspace() is a function which uses JUST spaces as delimeters. split() uses "/" AND spaces. + * splitspace() is a function which uses JUST spaces as delimiters. split() uses "/" AND spaces. * The way it works is real similar to split(), search the difference ;) * splitspace is needed for commands such as "move" where paths as C:\this/is\allowed/ are allowed */ diff --git a/reactos/base/shell/cmd/move.c b/reactos/base/shell/cmd/move.c index dd7dca968af..dd7143d2cc0 100644 --- a/reactos/base/shell/cmd/move.c +++ b/reactos/base/shell/cmd/move.c @@ -127,7 +127,7 @@ INT cmd_move (LPTSTR param) "\n" " [drive:][path]filename1 Specifies the location and name of the file\n" " or files you want to move.\n" - " /N Nothing. Don everthing but move files or direcories.\n" + " /N Nothing. Don everthing but move files or directories.\n" " /Y\n" " /-Y\n" "...")); diff --git a/reactos/base/shell/cmd/msgbox.c b/reactos/base/shell/cmd/msgbox.c index 2e790ad7855..318563fd6a7 100644 --- a/reactos/base/shell/cmd/msgbox.c +++ b/reactos/base/shell/cmd/msgbox.c @@ -32,7 +32,7 @@ INT CommandMsgbox (LPTSTR param) HWND hWnd; TCHAR buff[128]; - //these are MessabeBox() parameters + //these are MessageBox() parameters LPTSTR title, prompt = ""; UINT uType = U_TYPE_INIT; diff --git a/reactos/base/shell/cmd/pause.c b/reactos/base/shell/cmd/pause.c index 3d7a3020fc4..32e92d7ff03 100644 --- a/reactos/base/shell/cmd/pause.c +++ b/reactos/base/shell/cmd/pause.c @@ -8,7 +8,7 @@ * started. * * 16 Jul 1998 (John P Price) - * Seperated commands into individual files. + * Separated commands into individual files. * * 27-Jul-1998 (John P Price ) * added config.h include diff --git a/reactos/base/shell/cmd/readme.txt b/reactos/base/shell/cmd/readme.txt index d3a7b75eeb1..ac514365d81 100644 --- a/reactos/base/shell/cmd/readme.txt +++ b/reactos/base/shell/cmd/readme.txt @@ -11,7 +11,7 @@ Compiling ~~~~~~~~~ ROS cmd used to depend on __REACTOS__ to provide two different ways to build cmd. There is still code left in it for this but... The __REACTOS__ = 0 has not been develped, maintained. And therefore it does not even compile anymore. __REACTOS__ = 1 works fine on both windows(nt). and someday i plan to remove all the __REACTOS__ = 0. -Using rbuild you can compile cmd seperatly by "make cmd_install". Also you can compile cmd using MSVC 6 and soon 7/8 hopefully. +Using rbuild you can compile cmd separately by "make cmd_install". Also you can compile cmd using MSVC 6 and soon 7/8 hopefully. Current Features diff --git a/reactos/base/shell/cmd/readme2.txt b/reactos/base/shell/cmd/readme2.txt index bf793760400..2de2a692ddc 100644 --- a/reactos/base/shell/cmd/readme2.txt +++ b/reactos/base/shell/cmd/readme2.txt @@ -10,7 +10,7 @@ This is where all command lines switches given to cmd on startup are done. From here main calls ProcessInput(). This is where cmd loops for getting input and doing the commands. First it checks to see if there is a batch file(note: there is a global struct "bc" which is NULL when not processing a batch file) -and if there is it will pull a new line from that file. If not, thne it will wait for input. +and if there is it will pull a new line from that file. If not, then it will wait for input. Currently there is some stuff for set /a in there, which might stay there or see if we can find a better spot. Once there is input taken in from the command line it is sent into ParseCommandLine(). @@ -18,7 +18,7 @@ In here we fist check for aliases and convert if need be. Then we look for redirections using GetRedirection() which will remove any redirection symbols. and pass back info about where to redirect. from this info it will do some switching around with the handles for where things go and send them as need be. -personally i dont like this code and i tried to chnage it before but failed. +personally i dont like this code and i tried to change it before but failed. it is confusing to me and i dont understand why a lot of it is there but apparently it is needed. It sends the new string without any redirection info into DoCommand(). In this function we just look to see what should be done. @@ -27,16 +27,16 @@ There is one of 2 things that could happen. 2) we dont find it so we send it to Execute() and see if it is a file that we can do something. Execute will try to launch the file using createprocess and falls back on shellexecute. -It calls a function called SearchForExecuteable() to find the full path name and looks in all the correct locations like PATH, - curreent folder, windows folder. If it cant find it, just fails and prints out a message. +It calls a function called SearchForExecutable() to find the full path name and looks in all the correct locations like PATH, + current folder, windows folder. If it cant find it, just fails and prints out a message. Some useful functions that are used a lot: split() - splits a string into an array of string on spaces that aren't inside quotes. which you need to call freep() on later t clean up. -//Split it´s used to take the Arguments from Command Line,it´s the best option for almost all the cases. +//Split it´s used to take the Arguments from Command Line, it´s the best option for almost all the cases. //If the Command has special needs as Dir, it´s better to make a Parser INSIDE that Command(as DIR has) //Dont get mad(as i did): Split() can be find in Misc.c file.Really easy to follow. -//Also remember split() recive the Command Line,but the Command Line WITHOUT command name. +//Also remember split() receives the Command Line, but the Command Line WITHOUT command name. splitspace()-split a string into an array of string using spaces as splitters.which you need to call freep() on later to clean up. //This is the son of split() for commands that manage in the same way "/" and "\" when are INSIDE the paths. diff --git a/reactos/base/shell/cmd/ren.c b/reactos/base/shell/cmd/ren.c index 314ba0eee46..a3d46889113 100644 --- a/reactos/base/shell/cmd/ren.c +++ b/reactos/base/shell/cmd/ren.c @@ -21,7 +21,7 @@ * Remove all hardcoded strings in En.rc * * 25-Nov-2008 (Victor Martinez ) - * Patch dedicated to Myrjala because her comprenhension and love :D + * Patch dedicated to Myrjala because her comprehension and love :D * Fixing following Bugs: * -Wrong behavior with wildcards when Source and Destiny are Paths(FIXED). * -Wrong general behavior (MSDN:"Rename cant move files between subdirectories")(FIXED) @@ -55,9 +55,9 @@ INT cmd_rename (LPTSTR param) LPTSTR *arg = NULL; INT args = 0; INT nSlash = 0; - INT nEvalArgs = 0; /* nunber of evaluated arguments */ + INT nEvalArgs = 0; /* number of evaluated arguments */ DWORD dwFlags = 0; - DWORD dwFiles = 0; /* number of renamedd files */ + DWORD dwFiles = 0; /* number of renamed files */ INT i; LPTSTR srcPattern = NULL; /* Source Argument*/ @@ -69,7 +69,7 @@ INT cmd_rename (LPTSTR param) TCHAR dstPath[MAX_PATH]; /*Source Path Directories*/ LPTSTR dstFILE = NULL; /*Contains the files name(s)*/ - TCHAR dstLast[MAX_PATH]; /*It saves the File name after unmasked with wildcarts*/ + TCHAR dstLast[MAX_PATH]; /*It saves the File name after unmasked with wildcards*/ TCHAR dstFinal[MAX_PATH]; /*It saves the Final destiny Path*/ BOOL bDstWildcard = FALSE; @@ -102,7 +102,7 @@ INT cmd_rename (LPTSTR param) /* Read options */ for (i = 0; i < args; i++) { - /* Lets check if we have a special option choosen and set the flag(s)*/ + /* Lets check if we have a special option chosen and set the flag(s)*/ if (*arg[i] == _T('/')) { if (_tcslen(arg[i]) >= 2) diff --git a/reactos/base/shell/cmd/ren.txt b/reactos/base/shell/cmd/ren.txt index 72b1aea0d1e..ed2bfa2d166 100644 --- a/reactos/base/shell/cmd/ren.txt +++ b/reactos/base/shell/cmd/ren.txt @@ -43,12 +43,12 @@ dstPattern: here is stored Destiny Argument (C:\ie\hi.txt) dstPath: here is stored Destiny Path(C:\i) dstFILE: here is stored FILE re-name(hi.txt) -1)We begin retrieving arguments from command line and fulffilling dstPattern and srcPattern +1)We begin retrieving arguments from command line and fulfilling dstPattern and srcPattern 2)If srcPattern contains "\" then: -we activate bPath, since srcPattern has a path inside of it. - -we explit the srcPattern to srcFile and srcPath. + -we split the srcPattern to srcFile and srcPath. -Now we check the dstPattern ¿does it contain a Path?: -If does: we divide it in dstPath and dstFile.AND ALSO CHECK THAT dstPath and srcPath it´s the same(see syntax error).If they aren the same we launch an error. -If doesnt then we copy srcPath to dstPath(see #way2) and also saving dstPattern as dstFile. @@ -67,7 +67,7 @@ Do while is used to manage Wildcards.So we can iterate Finding all the files wit But wildcards (? and *) has different behavior so we have to be carefull. "q" stores the srcFile(this can be a real name file but ALSO A NAME FULL OF WILDCARDS)(p always has a REAL NAME)(This is the most difficult point to understand the code) -"r" is the Name File after aplying the Mask (q)(it´s stored in dstLast). +"r" is the Name File after applying the Mask (q)(it´s stored in dstLast). If we are just renaming one file,then we dont make the while loop.The do..while loop is made when some files are renamed: i.e ren *.lol *.rem @@ -76,7 +76,7 @@ If we are just renaming one file,then we dont make the while loop.The do..while bPath==TRUE means that Source Argument was a Path so now we have to Join again the Path with the Name File: -srcFINAL: srcPath+f.cFileName -dstFINAL: dstPath+dstFile -bPath==False then Souce wasn a Path an we dont need to join anything. +bPath==False then Source wasn a Path an we dont need to join anything. -srcFINAL:f.cFileName -dstFINAL:dstFile diff --git a/reactos/base/shell/cmd/replace.c b/reactos/base/shell/cmd/replace.c index 0b7ef3f0045..5929952582f 100644 --- a/reactos/base/shell/cmd/replace.c +++ b/reactos/base/shell/cmd/replace.c @@ -33,7 +33,7 @@ void invalid_switch(LPTSTR is) ConOutResPaging(TRUE,STRING_REPLACE_HELP3); } -/* retrives the pathe dependen om the input file name */ +/* retrieves the path dependent on the input file name */ void getPath(TCHAR* out, LPTSTR in) { if (_tcslen(in) == 2 && in[1] == _T(':')) @@ -86,7 +86,7 @@ INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *d if (IsExistingFile (dest)) { /* - * Resets the attributes to avoid probles with read only files, + * Resets the attributes to avoid problems with read only files, * checks for read only has been made earlier. */ SetFileAttributes(dest,FILE_ATTRIBUTE_NORMAL); @@ -239,7 +239,7 @@ INT recReplace(DWORD dwFlags, break; } - /* Go through all the soursfiles and copy/replace them */ + /* Go through all the sourcefiles and copy/replace them */ do { if (CheckCtrlBreak(BREAK_INPUT)) @@ -332,7 +332,7 @@ INT recFindSubDirs(DWORD dwFlags, /* Get the first file in the directory */ hFile = FindFirstFile (szDestPath, &findBuffer); - /* Remove the star added earlyer to dest path */ + /* Remove the star added earlier to dest path */ for(i = (_tcslen(szDestPath) - 1); i > -1; i--) { if (szDestPath[i] != _T('\\')) @@ -376,7 +376,7 @@ INT recFindSubDirs(DWORD dwFlags, if (!*doMore) break; _tcscpy(tmpSrcPath,szSrcPath); - /* Controle the next level of subdirs */ + /* Control the next level of subdirs */ filesReplaced += recFindSubDirs(dwFlags,tmpSrcPath,tmpDestPath, doMore); if (!*doMore) break; diff --git a/reactos/base/shell/cmd/strtoclr.c b/reactos/base/shell/cmd/strtoclr.c index be7af272385..4ecf7a5dbbf 100644 --- a/reactos/base/shell/cmd/strtoclr.c +++ b/reactos/base/shell/cmd/strtoclr.c @@ -240,16 +240,16 @@ WORD str_to_color(LPTSTR* arg_str) * The only parameter is arg_str, a pointer to a string. * The string is modified so it will begin to first word after * color specification - * (only the char* is moved, no chars in the string are modfied). + * (only the char* is moved, no chars in the string are modified). * * **** NOTE: The following functionality is deactivated **** * it returns the color in the l.o. byte, plus two flags in the * h.o. byte, they are: - * SC_HEX win nt's cmd syntax (for exampl a0) + * SC_HEX win nt's cmd syntax (for example a0) * SC_TXT 4nt's syntax ( "bri gre on bla" or "10 on 0") * ********************************************************** * - * If succedes also move the LPTSTR to end of + * If success also move the LPTSTR to end of * string that specify color. */ BOOL StringToColor(LPWORD lpColor, LPTSTR*str) diff --git a/reactos/base/shell/cmd/where.c b/reactos/base/shell/cmd/where.c index 00aaf7b008b..0e64d2aa123 100644 --- a/reactos/base/shell/cmd/where.c +++ b/reactos/base/shell/cmd/where.c @@ -51,7 +51,7 @@ * * 30-Jul-1998 (John P Price ) * fixed so that it find_which returns NULL if filename is not - * executable (does not have .bat, .com, or .exe extention). + * executable (does not have .bat, .com, or .exe extension). * Before command would to execute any file with any extension (opps!) * * 03-Dec-1998 (Eric Kohl) @@ -147,7 +147,7 @@ SearchForExecutable (LPCTSTR pFileName, LPTSTR pFullName) DWORD dwBuffer; TRACE ("SearchForExecutable: \'%s\'\n", debugstr_aw(pFileName)); - /* load environment varable PATHEXT */ + /* load environment variable PATHEXT */ pszPathExt = (LPTSTR)cmd_alloc (ENV_BUFFER_SIZE * sizeof(TCHAR)); dwBuffer = GetEnvironmentVariable (_T("PATHEXT"), pszPathExt, ENV_BUFFER_SIZE); if (dwBuffer > ENV_BUFFER_SIZE) @@ -185,7 +185,7 @@ SearchForExecutable (LPCTSTR pFileName, LPTSTR pFullName) return FALSE; } - /* load environment varable PATH into buffer */ + /* load environment variable PATH into buffer */ pszPath = (LPTSTR)cmd_alloc (ENV_BUFFER_SIZE * sizeof(TCHAR)); dwBuffer = GetEnvironmentVariable (_T("PATH"), pszPath, ENV_BUFFER_SIZE); if (dwBuffer > ENV_BUFFER_SIZE) diff --git a/reactos/base/shell/explorer/shellservice.cpp b/reactos/base/shell/explorer/shellservice.cpp index cda6ed7629d..2aded3050a0 100644 --- a/reactos/base/shell/explorer/shellservice.cpp +++ b/reactos/base/shell/explorer/shellservice.cpp @@ -60,7 +60,7 @@ HRESULT InitShellServices(HDPA * phdpa) *phdpa = NULL; - TRACE("Enumerating Shell Service Ojbect GUIDs...\n"); + TRACE("Enumerating Shell Service Object GUIDs...\n"); if (RegOpenKeyW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ShellServiceObjectDelayLoad", diff --git a/reactos/base/shell/explorer/startmnucust.cpp b/reactos/base/shell/explorer/startmnucust.cpp index 690548b22f0..92c41e6cdb3 100644 --- a/reactos/base/shell/explorer/startmnucust.cpp +++ b/reactos/base/shell/explorer/startmnucust.cpp @@ -75,7 +75,7 @@ INT_PTR CALLBACK CustomizeClassicProc(HWND hwnd, UINT Message, WPARAM wParam, LP switch(Message) { case WM_INITDIALOG: - /* FIXME: Properly intialize the dialog (check whether 'clear' button must be disabled, for example) */ + /* FIXME: Properly initialize the dialog (check whether 'clear' button must be disabled, for example) */ return TRUE; case WM_COMMAND: switch(LOWORD(wParam)) diff --git a/reactos/base/shell/explorer/taskswnd.cpp b/reactos/base/shell/explorer/taskswnd.cpp index 481e25b8389..cd3cd96c56e 100644 --- a/reactos/base/shell/explorer/taskswnd.cpp +++ b/reactos/base/shell/explorer/taskswnd.cpp @@ -1464,7 +1464,7 @@ public: { m_IsGroupingEnabled = bEnable; - /* Collapse or expand groups if neccessary */ + /* Collapse or expand groups if necessary */ UpdateButtonsSize(FALSE); } @@ -1605,7 +1605,7 @@ public: if (TaskItem != NULL && ::IsWindow(TaskItem->hWnd)) { - /* Make the entire button flashing if neccessary */ + /* Make the entire button flashing if necessary */ if (nmtbcd->nmcd.uItemState & CDIS_MARKED) { Ret = TBCDRF_NOBACKGROUND; diff --git a/reactos/base/shell/explorer/trayntfy.cpp b/reactos/base/shell/explorer/trayntfy.cpp index 14038fb83f1..359518e088b 100644 --- a/reactos/base/shell/explorer/trayntfy.cpp +++ b/reactos/base/shell/explorer/trayntfy.cpp @@ -783,7 +783,7 @@ public: if (c > 0) { - /* We want a spaceing of 1/2 line */ + /* We want a spacing of 1/2 line */ LineSpacing = (LineSpacing / c) / 2; } diff --git a/reactos/base/shell/explorer/traywnd.cpp b/reactos/base/shell/explorer/traywnd.cpp index e4b1619e1a0..815e532d5ab 100644 --- a/reactos/base/shell/explorer/traywnd.cpp +++ b/reactos/base/shell/explorer/traywnd.cpp @@ -248,7 +248,7 @@ DefSize: if (hbmp == NULL) goto Cleanup; - /* Caluclate the button rect */ + /* Calculate the button rect */ rcButton.left = 0; rcButton.top = 0; rcButton.right = Size.cx; @@ -1676,7 +1676,7 @@ ChangePos: return; } - /* Limit the Start button width to the client width, if neccessary */ + /* Limit the Start button width to the client width, if necessary */ StartSize = m_StartButton.GetSize(); if (StartSize.cx > rcClient.right) StartSize.cx = rcClient.right; @@ -2036,7 +2036,7 @@ ChangePos: { HDC hdc; RECT rect; - int backoundPart; + int backgroundPart; GetWindowRect(&rect); OffsetRect(&rect, -rect.left, -rect.top); @@ -2046,28 +2046,28 @@ ChangePos: switch (m_Position) { case ABE_LEFT: - backoundPart = TBP_SIZINGBARLEFT; + backgroundPart = TBP_SIZINGBARLEFT; rect.left = rect.right - GetSystemMetrics(SM_CXSIZEFRAME); break; case ABE_TOP: - backoundPart = TBP_SIZINGBARTOP; + backgroundPart = TBP_SIZINGBARTOP; rect.top = rect.bottom - GetSystemMetrics(SM_CYSIZEFRAME); break; case ABE_RIGHT: - backoundPart = TBP_SIZINGBARRIGHT; + backgroundPart = TBP_SIZINGBARRIGHT; rect.right = rect.left + GetSystemMetrics(SM_CXSIZEFRAME); break; case ABE_BOTTOM: default: - backoundPart = TBP_SIZINGBARBOTTOM; + backgroundPart = TBP_SIZINGBARBOTTOM; rect.bottom = rect.top + GetSystemMetrics(SM_CYSIZEFRAME); break; } - if (IsThemeBackgroundPartiallyTransparent(m_Theme, backoundPart, 0)) + if (IsThemeBackgroundPartiallyTransparent(m_Theme, backgroundPart, 0)) { DrawThemeParentBackground(m_hWnd, hdc, &rect); } - DrawThemeBackground(m_Theme, hdc, backoundPart, 0, &rect, 0); + DrawThemeBackground(m_Theme, hdc, backgroundPart, 0, &rect, 0); ReleaseDC(hdc); return 0; @@ -2241,7 +2241,7 @@ ChangePos: SetWindowsFont(); } - /* Move the tray window to the right position and resize it if neccessary */ + /* Move the tray window to the right position and resize it if necessary */ CheckTrayWndPosition(); /* Align all controls on the tray window */ @@ -2312,7 +2312,7 @@ ChangePos: /* Load the saved tray window settings */ RegLoadSettings(); - /* Move the tray window to the right position and resize it if neccessary */ + /* Move the tray window to the right position and resize it if necessary */ CheckTrayWndPosition(); /* Align all controls on the tray window */ diff --git a/reactos/base/system/diskpart/interpreter.c b/reactos/base/system/diskpart/interpreter.c index 15d8e95e74a..6f6a49d5951 100644 --- a/reactos/base/system/diskpart/interpreter.c +++ b/reactos/base/system/diskpart/interpreter.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS DiskPart * LICENSE: GPL - See COPYING in the top level directory * FILE: base/system/diskpart/interpreter.c - * PURPOSE: Reads the user input and then envokes the selected + * PURPOSE: Reads the user input and then invokes the selected * command by the user. * PROGRAMMERS: Lee Schroeder */ @@ -62,7 +62,7 @@ COMMAND cmds[] = /* * InterpretCmd(char *cmd_line, char *arg_line): * compares the command name to a list of available commands, and - * determines which function to envoke. + * determines which function to invoke. */ BOOL InterpretCmd(int argc, LPWSTR *argv) diff --git a/reactos/base/system/diskpart/lang/en-US.rc b/reactos/base/system/diskpart/lang/en-US.rc index 094e8adbd9c..0137f34f10c 100644 --- a/reactos/base/system/diskpart/lang/en-US.rc +++ b/reactos/base/system/diskpart/lang/en-US.rc @@ -87,7 +87,7 @@ BEGIN IDS_MSG_ARG_SYNTAX_ERROR "The argument(s) specified for this command are not valid.\nFor more information on the command type:" END -/* Help Command Descripions */ +/* Help Command Descriptions */ STRINGTABLE BEGIN IDS_HELP_CMD_DESC_ACTIVE "ACTIVE\t\t- Mark the selected partition as active.\n" diff --git a/reactos/base/system/diskpart/partlist.c b/reactos/base/system/diskpart/partlist.c index d400cb8dadb..0fd99eabda5 100644 --- a/reactos/base/system/diskpart/partlist.c +++ b/reactos/base/system/diskpart/partlist.c @@ -1009,7 +1009,7 @@ AddDiskToList( } else { - DPRINT1("No matching aligment found! Partition 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart); + DPRINT1("No matching alignment found! Partition 1 starts at %I64u\n", DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart); } } else diff --git a/reactos/base/system/regsvr32/regsvr32.c b/reactos/base/system/regsvr32/regsvr32.c index 2b854b9fd1c..ae64e533c11 100644 --- a/reactos/base/system/regsvr32/regsvr32.c +++ b/reactos/base/system/regsvr32/regsvr32.c @@ -211,7 +211,7 @@ LPTSTR *WINAPI CommandLineToArgvT(LPCTSTR lpCmdLine, int *lpArgc) // The macro ConvertToWideChar takes a tstring parameter and returns // a pointer to a unicode string. A conversion is performed if -// neccessary. FreeConvertedWideChar string should be used on the +// necessary. FreeConvertedWideChar string should be used on the // return value of ConvertToWideChar when the string is no longer // needed. The original string or the string that is returned // should not be modified until FreeConvertedWideChar has been called. diff --git a/reactos/base/system/rundll32/rundll32.c b/reactos/base/system/rundll32/rundll32.c index 45fb32edea9..f9d6b7e4c7a 100644 --- a/reactos/base/system/rundll32/rundll32.c +++ b/reactos/base/system/rundll32/rundll32.c @@ -236,7 +236,7 @@ void GetModuleTitle(void) // The macro ConvertToWideChar takes a tstring parameter and returns // a pointer to a unicode string. A conversion is performed if -// neccessary. FreeConvertedWideChar string should be used on the +// necessary. FreeConvertedWideChar string should be used on the // return value of ConvertToWideChar when the string is no longer // needed. The original string or the string that is returned // should not be modified until FreeConvertedWideChar has been called. @@ -263,7 +263,7 @@ LPWSTR ConvertToWideChar(LPCSTR lpString) // The macro ConvertToMultiByte takes a tstring parameter and returns // a pointer to an ansi string. A conversion is performed if -// neccessary. FreeConvertedMultiByte string should be used on the +// necessary. FreeConvertedMultiByte string should be used on the // return value of ConvertToMultiByte when the string is no longer // needed. The original string or the string that is returned // should not be modified until FreeConvertedMultiByte has been called. diff --git a/reactos/base/system/services/database.c b/reactos/base/system/services/database.c index 50eb5f53b7d..7036efe0217 100644 --- a/reactos/base/system/services/database.c +++ b/reactos/base/system/services/database.c @@ -1235,7 +1235,7 @@ ScmControlService(PSERVICE Service, #endif Done: - /* Release the contol packet */ + /* Release the control packet */ HeapFree(GetProcessHeap(), 0, ControlPacket); @@ -1477,7 +1477,7 @@ ScmSendStartCommand(PSERVICE Service, #endif Done: - /* Release the contol packet */ + /* Release the control packet */ HeapFree(GetProcessHeap(), 0, ControlPacket); diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index 73d3f180ef1..ee2d1a95773 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -968,7 +968,7 @@ DWORD RCloseServiceHandle( { DPRINT("Found service handle\n"); - /* Lock the service database exlusively */ + /* Lock the service database exclusively */ ScmLockDatabaseExclusive(); /* Get the pointer to the service record */ @@ -1022,7 +1022,7 @@ DWORD RCloseServiceHandle( return ERROR_SUCCESS; } - /* There are no references and no runnning dependencies, + /* There are no references and no running dependencies, it is now safe to delete the service */ /* Delete the Service Key */ @@ -1238,7 +1238,7 @@ DWORD RControlService( dwControl == SERVICE_CONTROL_PAUSE || dwControl == SERVICE_CONTROL_CONTINUE) { - /* Log a sucessful send control */ + /* Log a successful send control */ switch (dwControl) { @@ -1439,7 +1439,7 @@ DWORD RSetServiceObjectSecurity( SC_RPC_HANDLE hService, DWORD dwSecurityInformation, LPBYTE lpSecurityDescriptor, - DWORD dwSecuityDescriptorSize) + DWORD dwSecurityDescriptorSize) { PSERVICE_HANDLE hSvc; PSERVICE lpService; diff --git a/reactos/base/system/services/services.c b/reactos/base/system/services/services.c index 388deaca333..a7c4f5f4b41 100644 --- a/reactos/base/system/services/services.c +++ b/reactos/base/system/services/services.c @@ -294,7 +294,7 @@ ShutdownHandlerRoutine(DWORD dwCtrlType) ScmAutoShutdownServices(); ScmShutdownServiceDatabase(); - /* Set the shutdwon event */ + /* Set the shutdown event */ SetEvent(hScmShutdownEvent); } diff --git a/reactos/base/system/services/services.h b/reactos/base/system/services/services.h index 51eb4d75ddc..5dc4980c1d1 100644 --- a/reactos/base/system/services/services.h +++ b/reactos/base/system/services/services.h @@ -86,7 +86,7 @@ typedef struct _START_LOCK { DWORD Tag; /* Must be LOCK_TAG */ DWORD TimeWhenLocked; /* Number of seconds since 1970 */ - PSID LockOwnerSid; /* It is NULL if the SCM aquired the lock */ + PSID LockOwnerSid; /* It is NULL if the SCM acquired the lock */ } START_LOCK, *PSTART_LOCK; diff --git a/reactos/base/system/smss/pagefile.c b/reactos/base/system/smss/pagefile.c index 11c34e8186d..bd4df1a5c9f 100644 --- a/reactos/base/system/smss/pagefile.c +++ b/reactos/base/system/smss/pagefile.c @@ -580,7 +580,7 @@ SmpCreatePagingFileOnFixedDrive(IN PSMP_PAGEFILE_DESCRIPTOR Descriptor, break; } - /* We failed, try a slighly smaller pagefile */ + /* We failed, try a slightly smaller pagefile */ Descriptor->ActualMinSize.QuadPart -= FuzzFactor->QuadPart; } diff --git a/reactos/base/system/smss/sminit.c b/reactos/base/system/smss/sminit.c index 1c8d218ea34..8fc6ab317d2 100644 --- a/reactos/base/system/smss/sminit.c +++ b/reactos/base/system/smss/sminit.c @@ -1501,7 +1501,7 @@ SmpInitializeKnownDllsInternal(IN PUNICODE_STRING Directory, DPRINT("Processing known DLL: %wZ-%wZ\n", &RegEntry->Name, &RegEntry->Value); - /* Skip the entry if it's in the exluded list */ + /* Skip the entry if it's in the excluded list */ if ((SmpFindRegistryValue(&SmpExcludeKnownDllsList, RegEntry->Name.Buffer)) || (SmpFindRegistryValue(&SmpExcludeKnownDllsList, @@ -2166,7 +2166,7 @@ Quickie: } else { - /* We suceeded with a delete */ + /* We succeeded with a delete */ DPRINT("SMSS: '%wZ' (deleted)\n", &RegEntry->Name); } @@ -2377,7 +2377,7 @@ SmpLoadDataFromRegistry(OUT PUNICODE_STRING InitialCommand) return Status; } - /* And finally load all the subsytems for our first session! */ + /* And finally load all the subsystems for our first session! */ Status = SmpLoadSubSystemsForMuSession(&MuSessionId, &SmpWindowsSubSysProcessId, InitialCommand); diff --git a/reactos/base/system/smss/smloop.c b/reactos/base/system/smss/smloop.c index 60f574040a4..ff5067a44ad 100644 --- a/reactos/base/system/smss/smloop.c +++ b/reactos/base/system/smss/smloop.c @@ -222,7 +222,7 @@ SmpHandleConnectionRequest(IN HANDLE SmApiPort, SmpGetProcessMuSessionId(ProcessHandle, &SessionId); } - /* See if we already know about the caller's subystem */ + /* See if we already know about the caller's subsystem */ CidSubsystem = SmpLocateKnownSubSysByCid(&SbApiMsg->h.ClientId); if ((CidSubsystem) && (Accept)) { @@ -423,7 +423,7 @@ SmpApiLoop(IN PVOID Parameter) SmApiPort); } - /* Write the result valud and return the message back */ + /* Write the result value and return the message back */ RequestMsg.ReturnValue = Status; ReplyMsg = &RequestMsg; break; diff --git a/reactos/base/system/smss/smsubsys.c b/reactos/base/system/smss/smsubsys.c index 7b9364dd783..acf303d0bce 100644 --- a/reactos/base/system/smss/smsubsys.c +++ b/reactos/base/system/smss/smsubsys.c @@ -166,7 +166,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName, RtlEnterCriticalSection(&SmpKnownSubSysLock); while (TRUE) { - /* Check if we found a subsystem not yet fully iniitalized */ + /* Check if we found a subsystem not yet fully initialized */ Subsystem = SmpLocateKnownSubSysByType(MuSessionId, -1); if (!Subsystem) break; RtlLeaveCriticalSection(&SmpKnownSubSysLock); @@ -220,7 +220,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName, NewSubsystem->PortHandle = NULL; NewSubsystem->SbApiPort = NULL; - /* Create the event we'll be wating on for initialization */ + /* Create the event we'll be waiting on for initialization */ Status = NtCreateEvent(&NewSubsystem->Event, EVENT_ALL_ACCESS, NULL, diff --git a/reactos/base/system/winlogon/winlogon.c b/reactos/base/system/winlogon/winlogon.c index 26219343000..2b2e5303f6e 100644 --- a/reactos/base/system/winlogon/winlogon.c +++ b/reactos/base/system/winlogon/winlogon.c @@ -124,7 +124,7 @@ WaitForLsass(VOID) if (hEvent == NULL) { dwError = GetLastError(); - TRACE("WL: Failed to create the notication event (Error %lu)\n", dwError); + TRACE("WL: Failed to create the notification event (Error %lu)\n", dwError); if (dwError == ERROR_ALREADY_EXISTS) { diff --git a/reactos/base/system/winlogon/winlogon.h b/reactos/base/system/winlogon/winlogon.h index 9c5819d36a7..f54ac7a091e 100644 --- a/reactos/base/system/winlogon/winlogon.h +++ b/reactos/base/system/winlogon/winlogon.h @@ -126,7 +126,7 @@ typedef struct _GINAINSTANCE * The real picture should look more like this: * * STATE_INIT - * Initial state. Required for session initialization. After intialization, + * Initial state. Required for session initialization. After initialization, * the state will automatically change to STATE_LOGGED_OFF. * * STATE_LOGGED_OFF @@ -161,7 +161,7 @@ typedef struct _GINAINSTANCE * the dialog. * * STATE_LOCKED_SAS - * Winlogon shows the unlock dialog. Presing "Cancel" or a timeout will + * Winlogon shows the unlock dialog. Pressing "Cancel" or a timeout will * change the state back to STATE_LOCKED. Entering the right credentials and * pressing "OK" unlocks the computer and changes the state to * STATE_LOGGED_ON. @@ -172,7 +172,7 @@ typedef struct _GINAINSTANCE * and changes the state to STATE_LOGGED_OFF. * * STATE_SHUTTING_DOWN - * Winlogon shows the shutdown dialog. Presing "Cancel" or a timeout will + * Winlogon shows the shutdown dialog. Pressing "Cancel" or a timeout will * change the state back to STATE_LOGGED_ON_SAS. Pressing "OK" will change * the state to STATE_SHUT_DOWN. * @@ -275,7 +275,7 @@ extern PWLSESSION WLSession; BOOL CreateUserEnvironment(IN PWLSESSION Session); -/* notifiy.c */ +/* notify.c */ BOOL InitNotifications(VOID); diff --git a/reactos/base/system/winlogon/wlx.c b/reactos/base/system/winlogon/wlx.c index 4f3caad2901..ba24de13110 100644 --- a/reactos/base/system/winlogon/wlx.c +++ b/reactos/base/system/winlogon/wlx.c @@ -850,7 +850,7 @@ LoadGina( } else { - TRACE("About to negociate with Gina %S. Winlogon uses version %x\n", + TRACE("About to negotiate with Gina %S. Winlogon uses version %x\n", GinaDll, WLX_CURRENT_VERSION); if (!Functions->WlxNegotiate(WLX_CURRENT_VERSION, DllVersion)) goto cleanup;