diff --git a/dlls/comctl32/string.c b/dlls/comctl32/string.c index 5f4395e709e..45163fedc06 100644 --- a/dlls/comctl32/string.c +++ b/dlls/comctl32/string.c @@ -421,7 +421,7 @@ INT WINAPI StrCmpNW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen) /************************************************************************** * StrRChrA [COMCTL32.351] * - * Find the last occurence of a character in string. + * Find the last occurrence of a character in string. * * PARAMS * lpszStr [I] String to search in @@ -572,7 +572,7 @@ LPWSTR WINAPI StrChrIW(LPCWSTR lpszStr, WCHAR ch) /************************************************************************* * StrRStrIA [COMCTL32.372] * - * Find the last occurence of a substring within a string. + * Find the last occurrence of a substring within a string. * * PARAMS * lpszStr [I] String to search in @@ -580,7 +580,7 @@ LPWSTR WINAPI StrChrIW(LPCWSTR lpszStr, WCHAR ch) * lpszSearch [I] String to look for * * RETURNS - * The last occurence lpszSearch within lpszStr, or NULL if not found. + * The last occurrence lpszSearch within lpszStr, or NULL if not found. */ LPSTR WINAPI StrRStrIA(LPCSTR lpszStr, LPCSTR lpszEnd, LPCSTR lpszSearch) { @@ -709,7 +709,7 @@ int WINAPI StrCSpnIW(LPCWSTR lpszStr, LPCWSTR lpszMatch) /************************************************************************** * StrRChrIA [COMCTL32.368] * - * Find the last occurence of a character in string, ignoring case. + * Find the last occurrence of a character in string, ignoring case. * * PARAMS * lpszStr [I] String to search in diff --git a/dlls/commdlg/cdlg32.c b/dlls/commdlg/cdlg32.c index 38cc88c42e2..1a50542ba11 100644 --- a/dlls/commdlg/cdlg32.c +++ b/dlls/commdlg/cdlg32.c @@ -131,8 +131,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved) * COMDLG32_AllocMem (internal) * Get memory for internal datastructure plus stringspace etc. * RETURNS - * Pointer to a heap block: Succes - * NULL: Failure + * Success: Pointer to a heap block + * Failure: null */ LPVOID COMDLG32_AllocMem( int size /* [in] Block size to allocate */ diff --git a/dlls/kernel/comm.c b/dlls/kernel/comm.c index 9c5dd6d2fe0..2f1a3fcfd98 100644 --- a/dlls/kernel/comm.c +++ b/dlls/kernel/comm.c @@ -692,7 +692,7 @@ static BOOL COMM_GetCommError(HANDLE handle, LPDWORD lperror) * Only TIOCSBRK and TIOCCBRK are supported. */ BOOL WINAPI SetCommBreak( - HANDLE handle) /* [in] The communictions device to suspend. */ + HANDLE handle) /* [in] The communications device to suspend. */ { #if defined(TIOCSBRK) && defined(TIOCCBRK) /* check if available for compilation */ int fd,result; @@ -1395,7 +1395,7 @@ BOOL WINAPI SetCommState( case ONESTOPBIT: port.c_cflag &= ~CSTOPB; break; - case ONE5STOPBITS: /* wil be selected if bytesize is 5 */ + case ONE5STOPBITS: /* will be selected if bytesize is 5 */ case TWOSTOPBITS: port.c_cflag |= CSTOPB; break; diff --git a/dlls/kernel/editline.c b/dlls/kernel/editline.c index 2df3a7a332e..b61b45439af 100644 --- a/dlls/kernel/editline.c +++ b/dlls/kernel/editline.c @@ -192,7 +192,7 @@ static void WCEL_DeleteString(WCEL_Context* ctx, int beg, int end) /* completely erase all the others (full lines) */ for (i = cbeg.Y + 1; i < cend.Y; i++) CONSOLE_FillLineUniform(ctx->hConOut, 0, i, ctx->csbi.dwSize.X, &ci); - /* erase from begining of line until last pos on last line */ + /* erase from beginning of line until last pos on last line */ CONSOLE_FillLineUniform(ctx->hConOut, 0, cend.Y, cend.X, &ci); } ctx->len -= str_len; diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c index 53dfdacfb85..e4e379fc24c 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -1271,14 +1271,14 @@ static char **build_argv( const WCHAR *cmdlineW, int reserved ) } else if (*s=='"') { /* '"' */ if ((bcount & 1)==0) { - /* Preceeded by an even number of '\', this is half that + /* Preceded by an even number of '\', this is half that * number of '\', plus a '"' which we discard. */ d-=bcount/2; s++; in_quotes=!in_quotes; } else { - /* Preceeded by an odd number of '\', this is half that + /* Preceded by an odd number of '\', this is half that * number of '\' followed by a '"' */ d=d-bcount/2-1; diff --git a/dlls/kernel/thunk.c b/dlls/kernel/thunk.c index a984f1c3dcd..76492dc7e09 100644 --- a/dlls/kernel/thunk.c +++ b/dlls/kernel/thunk.c @@ -1216,7 +1216,7 @@ void WINAPI GetTEBSelectorFS16(void) * If fn is given as NULL then the function expects hf16 to be valid. */ BOOL16 WINAPI IsPeFormat16( - LPSTR fn, /* [in] Filename to the executeable */ + LPSTR fn, /* [in] Filename to the executable */ HFILE16 hf16) /* [in] An open file handle */ { BOOL ret = FALSE; diff --git a/dlls/kernel/time.c b/dlls/kernel/time.c index 4ad09b24700..49f91994dcc 100644 --- a/dlls/kernel/time.c +++ b/dlls/kernel/time.c @@ -239,7 +239,7 @@ static BOOL TIME_GetTimezoneBias( *pTZinfo, /* [in] The time zone data. */ FILETIME *lpFileTime, /* [in] The system or local time. */ BOOL islocal, /* [in] it is local time */ - LONG *pBias /* [out] The calulated bias in minutes */ + LONG *pBias /* [out] The calculated bias in minutes */ ) { LONG bias = pTZinfo->Bias; @@ -299,9 +299,9 @@ BOOL WINAPI SetLocalTime( * Only the special case of disabled time adjustments is supported. */ BOOL WINAPI GetSystemTimeAdjustment( - PDWORD lpTimeAdjustment, /* [out] The clock adjustment per interupt in 100's of nanoseconds. */ - PDWORD lpTimeIncrement, /* [out] The time between clock interupts in 100's of nanoseconds. */ - PBOOL lpTimeAdjustmentDisabled) /* [out] The clock synchonisation has been disabled. */ + PDWORD lpTimeAdjustment, /* [out] The clock adjustment per interrupt in 100's of nanoseconds. */ + PDWORD lpTimeIncrement, /* [out] The time between clock interrupts in 100's of nanoseconds. */ + PBOOL lpTimeAdjustmentDisabled) /* [out] The clock synchronisation has been disabled. */ { *lpTimeAdjustment = 0; *lpTimeIncrement = 0; @@ -536,7 +536,7 @@ BOOL WINAPI GetProcessTimes( HANDLE hprocess, /* [in] The process to be queried (obtained from PROCESS_QUERY_INFORMATION). */ LPFILETIME lpCreationTime, /* [out] The creation time of the process. */ LPFILETIME lpExitTime, /* [out] The exit time of the process if exited. */ - LPFILETIME lpKernelTime, /* [out] The time spent in kernal routines in 100's of nanoseconds. */ + LPFILETIME lpKernelTime, /* [out] The time spent in kernel routines in 100's of nanoseconds. */ LPFILETIME lpUserTime) /* [out] The time spent in user routines in 100's of nanoseconds. */ { struct tms tms; diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index e31af7efb7f..e956b988b2a 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -862,7 +862,7 @@ INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW puiHandler, * id [I] id of the string to be loaded * lpBuffer [O] buffer for the string to be written to * nBufferMax [I] maximum size of the buffer in characters - * lang [I] the prefered language for the string + * lang [I] the preferred language for the string * * RETURNS * diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c index 91a30884794..2abea3d0559 100644 --- a/dlls/msvcrt/mbcs.c +++ b/dlls/msvcrt/mbcs.c @@ -796,7 +796,7 @@ int _ismbslead(const unsigned char* start, const unsigned char* str) */ int _ismbstrail(const unsigned char* start, const unsigned char* str) { - /* Must not be a lead, and must be preceeded by one */ + /* Must not be a lead, and must be preceded by one */ return !_ismbslead(start, str) && MSVCRT_isleadbyte(str[-1]); } diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 01ce36b02fa..6e8d8800259 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -1452,7 +1452,7 @@ ULONG WINAPI RtlSizeHeap( HANDLE heap, ULONG flags, PVOID ptr ) /*********************************************************************** * RtlValidateHeap (NTDLL.@) * - * Determine if a block is a valid alloction from a heap. + * Determine if a block is a valid allocation from a heap. * * PARAMS * heap [I] Heap that block was allocated from diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c index 02bc584ec30..bf80ca33396 100644 --- a/dlls/ntdll/large_int.c +++ b/dlls/ntdll/large_int.c @@ -389,8 +389,8 @@ LONGLONG WINAPI RtlExtendedMagicDivide( * NOTES * Instead of base 0 it uses 10 as base. * Writes at most length characters to the string str. - * Str is '\0' terminated when length allowes it. - * When str fits exactly in length characters the '\0' is ommitted. + * Str is '\0' terminated when length allows it. + * When str fits exactly in length characters the '\0' is omitted. * If value_ptr is NULL it crashes, as the native function does. * * DIFFERENCES diff --git a/dlls/ntdll/rtlbitmap.c b/dlls/ntdll/rtlbitmap.c index d971bca2ad9..4ed95bac003 100644 --- a/dlls/ntdll/rtlbitmap.c +++ b/dlls/ntdll/rtlbitmap.c @@ -742,7 +742,7 @@ static ULONG NTDLL_FindSetRun(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpSize) lpOut++; } - /* Count remaining contigious bits, if any */ + /* Count remaining contiguous bits, if any */ if (*lpOut & 1) { ULONG ulOffset = 0; @@ -833,7 +833,7 @@ static ULONG NTDLL_FindClearRun(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpSiz lpOut++; } - /* Count remaining contigious bits, if any */ + /* Count remaining contiguous bits, if any */ if (!(*lpOut & 1)) { ULONG ulOffset = 0; diff --git a/dlls/ntdll/rtlstr.c b/dlls/ntdll/rtlstr.c index e8db8459bb2..55c33c84ab4 100644 --- a/dlls/ntdll/rtlstr.c +++ b/dlls/ntdll/rtlstr.c @@ -1353,8 +1353,8 @@ NTSTATUS WINAPI RtlAppendStringToString( * * NOTES * if src is NULL dest is unchanged. - * dest is '\0' terminated when the MaximumLength allowes it. - * When dest fits exactly in MaximumLength characters the '\0' is ommitted. + * dest is '\0' terminated when the MaximumLength allows it. + * When dest fits exactly in MaximumLength characters the '\0' is omitted. * * DIFFERENCES * Does not write in the src->Buffer beyond MaximumLength when @@ -1392,8 +1392,8 @@ NTSTATUS WINAPI RtlAppendUnicodeToString( * * NOTES * if src->length is zero dest is unchanged. - * dest is '\0' terminated when the MaximumLength allowes it. - * When dest fits exactly in MaximumLength characters the '\0' is ommitted. + * dest is '\0' terminated when the MaximumLength allows it. + * When dest fits exactly in MaximumLength characters the '\0' is omitted. * * DIFFERENCES * Does not write in the src->Buffer beyond MaximumLength when @@ -1692,8 +1692,8 @@ NTSTATUS WINAPI RtlCharToInteger( * NOTES * Instead of base 0 it uses 10 as base. * Writes at most length characters to the string str. - * Str is '\0' terminated when length allowes it. - * When str fits exactly in length characters the '\0' is ommitted. + * Str is '\0' terminated when length allows it. + * When str fits exactly in length characters the '\0' is omitted. */ NTSTATUS WINAPI RtlIntegerToChar( ULONG value, /* [I] Value to be converted */ diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index ae8b68a995d..f247f3dd16b 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -190,7 +190,7 @@ DWORD WINAPI RtlLengthRequiredSid(DWORD nrofsubauths) * Determine the amount of memory a SID is using * * PARAMS - * pSid [I] SID to ge the size of. + * pSid [I] SID to get the size of. * * RETURNS * The size, in bytes, of pSid. @@ -213,7 +213,7 @@ DWORD WINAPI RtlLengthSid(PSID pSid) * nSubAuthorityCount [I] Number of Sub Authorities * * RETURNS - * Success: TRUE. pSid is initialised withe the details given. + * Success: TRUE. pSid is initialised with the details given. * Failure: FALSE, if nSubAuthorityCount is >= SID_MAX_SUB_AUTHORITIES. */ BOOL WINAPI RtlInitializeSid( diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 39cbf545ec2..3b471c83e44 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -1036,7 +1036,7 @@ static BOOL OLEMenu_FindMainMenuIndex( HMENU hMainMenu, HMENU hPopupMenu, UINT * * All menu messages from these groups should be routed to the server. * * RETURNS: TRUE if the popup menu is part of a server owned group - * FASE if the popup menu is part of a container owned group + * FALSE if the popup menu is part of a container owned group */ BOOL OLEMenu_SetIsServerMenu( HMENU hmenu, OleMenuDescriptor *pOleMenuDescriptor ) { diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 142f4f15a65..729a239fd42 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -106,7 +106,7 @@ typedef struct OLEPictureImpl { IPersistStreamVtbl *lpvtbl3; IConnectionPointContainerVtbl *lpvtbl4; - /* Object referenece count */ + /* Object reference count */ DWORD ref; /* We own the object and must destroy it ourselves */ @@ -705,7 +705,7 @@ static HRESULT WINAPI OLEPictureImpl_get_Attributes(IPicture *iface, TRACE("(%p)->(%p).\n", This, pdwAttr); *pdwAttr = 0; switch (This->desc.picType) { - case PICTYPE_BITMAP: break; /* not 'truely' scalable, see MSDN. */ + case PICTYPE_BITMAP: break; /* not 'truly' scalable, see MSDN. */ case PICTYPE_ICON: *pdwAttr = PICTURE_TRANSPARENT;break; case PICTYPE_METAFILE: *pdwAttr = PICTURE_TRANSPARENT|PICTURE_SCALABLE;break; default:FIXME("Unknown pictype %d\n",This->desc.picType);break; diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index 5df7a0d63f7..3f223e0b3af 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -4498,7 +4498,7 @@ static void test_VarBoolFromStr(void) CONVERT_STR(VarBoolFromStr,"faux",0); EXPECT_MISMATCH; /* But accepted if this flag is given */ CONVERT_STR(VarBoolFromStr,"faux",VARIANT_LOCALBOOL); EXPECT(VARIANT_FALSE); - /* Regardless of case - from this we assume locale text comparasons ignore case */ + /* Regardless of case - from this we assume locale text comparisons ignore case */ CONVERT_STR(VarBoolFromStr,"Faux",VARIANT_LOCALBOOL); EXPECT(VARIANT_FALSE); /* Changing the locale prevents the localised text from being compared - diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 1b90eb95274..c6767274547 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -866,7 +866,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength); /*======================= ITypeInfo implementation =======================*/ -/* data for refernced types */ +/* data for referenced types */ typedef struct tagTLBRefType { INT index; /* Type index for internal ref or for external ref @@ -1925,7 +1925,7 @@ static void MSFT_DoVars(TLBContext *pcx, ITypeInfoImpl *pTI, int cFuncs, recoffset += reclength; } } -/* fill in data for a hreftype (offset). When the refernced type is contained +/* fill in data for a hreftype (offset). When the referenced type is contained * in the typelib, it's just an (file) offset in the type info base dir. * If comes from import, it's an offset+1 in the ImpInfo table * */ @@ -3081,7 +3081,7 @@ static SLTG_TypeInfoTail *SLTG_ProcessEnum(char *pBlk, ITypeInfoImpl *pTI, return (SLTG_TypeInfoTail*)(pFirstItem + pMemHeader->cbExtra); } -/* Because SLTG_OtherTypeInfo is such a painfull struct, we make a more +/* Because SLTG_OtherTypeInfo is such a painful struct, we make a more managable copy of it into this */ typedef struct { WORD small_no; @@ -4116,7 +4116,7 @@ static ULONG WINAPI ITypeInfo_fnRelease(ITypeInfo2 *iface) TRACE("(%p)->(%lu)\n",This, ref); if (ref) { - /* We don't release ITypeLib when ref=0 becouse + /* We don't release ITypeLib when ref=0 because it means that funtion is called by ITypeLi2_Release */ ITypeLib2_Release((ITypeLib2*)This->pTypeLib); } else { diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 7c7ecb4acfb..cf34267d7f3 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -140,7 +140,7 @@ typedef struct tagMSFT_ImpFile { int guid; LCID lcid; int version; - char filename[0]; /* preceeded by two bytes of encoded (length << 2) + flags in the low two bits. */ + char filename[0]; /* preceded by two bytes of encoded (length << 2) + flags in the low two bits. */ } MSFT_ImpFile; typedef struct tagICreateTypeLib2Impl @@ -2055,7 +2055,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetFuncCustData( static HRESULT WINAPI ICreateTypeInfo2_fnSetParamCustData( ICreateTypeInfo2* iface, /* [I] The typeinfo in which to set the custom data. */ UINT indexFunc, /* [I] The index of the function on which the parameter resides. */ - UINT indexParam, /* [I] The index of the paramter on which to set the custom data. */ + UINT indexParam, /* [I] The index of the parameter on which to set the custom data. */ REFGUID guid, /* [I] The GUID used as a key to retrieve the custom data. */ VARIANT* pVarVal) /* [I] The custom data. */ { diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c index 43e086b15a9..c1c02dd567a 100644 --- a/dlls/oleaut32/varformat.c +++ b/dlls/oleaut32/varformat.c @@ -885,7 +885,7 @@ HRESULT WINAPI VarTokenizeFormatString(LPOLESTR lpszFormat, LPBYTE rgbTok, TRACE("h\n"); } fmt_state &= ~FMT_STATE_OPEN_COPY; - /* Note that now we have seen an hours token, the next occurence of + /* Note that now we have seen an hours token, the next occurrence of * 'mm' indicates minutes, not months. */ fmt_state |= FMT_STATE_SEEN_HOURS; diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index 5263bfc81cc..4a85a99cbb1 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -199,7 +199,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs) /* '"' */ if ((bcount & 1)==0) { - /* Preceeded by an even number of '\', this is half that + /* Preceded by an even number of '\', this is half that * number of '\', plus a quote which we erase. */ d-=bcount/2; @@ -208,7 +208,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs) } else { - /* Preceeded by an odd number of '\', this is half that + /* Preceded by an odd number of '\', this is half that * number of '\' followed by a '"' */ d=d-bcount/2-1; diff --git a/dlls/shlwapi/assoc.c b/dlls/shlwapi/assoc.c index 480f3ee1260..153f1d43e27 100644 --- a/dlls/shlwapi/assoc.c +++ b/dlls/shlwapi/assoc.c @@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell); * when you right-click on a file). * * HELPERS - * You can use this object tranparently by calling the helper functions + * You can use this object transparently by calling the helper functions * AssocQueryKeyA(), AssocQueryStringA() and AssocQueryStringByKeyA(). These * create an IQueryAssociations object, perform the requested actions * and then dispose of the object. Alternatively, you can create an instance diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index d059b22fbae..f51988f8984 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -534,7 +534,7 @@ LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch) /************************************************************************* * StrRStrIA [SHLWAPI.@] * - * Find the last occurence of a substring within a string. + * Find the last occurrence of a substring within a string. * * PARAMS * lpszStr [I] String to search in @@ -542,7 +542,7 @@ LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch) * lpszSearch [I] String to look for * * RETURNS - * The last occurence lpszSearch within lpszStr, or NULL if not found. + * The last occurrence lpszSearch within lpszStr, or NULL if not found. */ LPSTR WINAPI StrRStrIA(LPCSTR lpszStr, LPCSTR lpszEnd, LPCSTR lpszSearch) { @@ -711,7 +711,7 @@ int WINAPI StrToIntW(LPCWSTR lpszStr) * NOTES * Leading whitespace, '-' and '+' are allowed before the number. If * dwFlags includes STIF_SUPPORT_HEX, hexadecimal numbers are allowed, if - * preceeded by '0x'. If this flag is not set, or there is no '0x' prefix, + * preceded by '0x'. If this flag is not set, or there is no '0x' prefix, * the string is treated as a decimal string. A leading '-' is ignored for * hexadecimal numbers. */ @@ -1171,7 +1171,7 @@ static LPWSTR WINAPI SHLWAPI_StrRChrHelperW(LPCWSTR lpszStr, /************************************************************************** * StrRChrA [SHLWAPI.@] * - * Find the last occurence of a character in string. + * Find the last occurrence of a character in string. * * PARAMS * lpszStr [I] String to search in @@ -1205,7 +1205,7 @@ LPWSTR WINAPI StrRChrW(LPCWSTR lpszStr, LPCWSTR lpszEnd, WORD ch) /************************************************************************** * StrRChrIA [SHLWAPI.@] * - * Find the last occurence of a character in string, ignoring case. + * Find the last occurrence of a character in string, ignoring case. * * PARAMS * lpszStr [I] String to search in diff --git a/dlls/win32s/w32sys.c b/dlls/win32s/w32sys.c index 414c26f13c9..b79e5e6e69d 100644 --- a/dlls/win32s/w32sys.c +++ b/dlls/win32s/w32sys.c @@ -74,7 +74,7 @@ WORD WINAPI GetW32SysVersion16(void) * dunno what. */ WORD WINAPI GetPEResourceTable16( - HFILE16 hf /* [in] filedescriptor to opened executeable */ + HFILE16 hf /* [in] Handle of executable file */ ) { return 0; } @@ -90,12 +90,12 @@ DWORD WINAPI LoadPeResource16(WORD x,SEGPTR y) { /********************************************************************** * IsPeFormat (W32SYS.2) - * Checks the passed filename if it is a PE format executeable + * Check if a file is a PE format executable. * RETURNS * TRUE, if it is. * FALSE if not. */ -BOOL16 WINAPI IsPeFormat16( LPSTR fn, /* [in] filename to executeable */ +BOOL16 WINAPI IsPeFormat16( LPSTR fn, /* [in] filename of executable */ HFILE16 hf16 ) /* [in] open file, if filename is NULL */ { BOOL16 ret = FALSE; diff --git a/dlls/wineps/graphics.c b/dlls/wineps/graphics.c index 8d52af5a728..a38f8afe80b 100644 --- a/dlls/wineps/graphics.c +++ b/dlls/wineps/graphics.c @@ -124,7 +124,7 @@ BOOL PSDRV_Rectangle( PSDRV_PDEVICE *physDev, INT left, INT top, INT right, INT rect.bottom = bottom; LPtoDP( physDev->hdc, (POINT *)&rect, 2 ); - /* Windows does something truely hacky here. If we're in passthrough mode + /* Windows does something truly hacky here. If we're in passthrough mode and our rop is R2_NOP, then we output the string below. This is used in Office 2k when inserting eps files */ if(physDev->job.in_passthrough && !physDev->job.had_passthrough_rect && GetROP2(physDev->hdc) == R2_NOP) { diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index 1605b101708..9170e6454c6 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -52,7 +52,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wininet); /* FIXME!!!!!! - * This should use winsock - To use winsock the funtions will have to change a bit + * This should use winsock - To use winsock the functions will have to change a bit * as they are designed for unix sockets. * SSL stuff should use crypt32.dll */ @@ -74,7 +74,7 @@ static SSL_CTX *ctx; #define MAKE_FUNCPTR(f) static typeof(f) * p##f -/* OpenSSL funtions that we use */ +/* OpenSSL functions that we use */ MAKE_FUNCPTR(SSL_library_init); MAKE_FUNCPTR(SSL_load_error_strings); MAKE_FUNCPTR(SSLv23_method); diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c index 9d9f19d698b..a225fc538fb 100644 --- a/programs/regedit/regproc.c +++ b/programs/regedit/regproc.c @@ -609,7 +609,7 @@ void doSetValue(LPSTR stdInput) } /****************************************************************************** - * This funtion is the main entry point to the queryValue type of action. It + * This function is the main entry point to the queryValue type of action. It * receives the currently read line and dispatch the work depending on the * context. */ @@ -647,7 +647,7 @@ void doQueryValue(LPSTR stdInput) } /****************************************************************************** - * This funtion is the main entry point to the deletetValue type of action. It + * This function is the main entry point to the deleteValue type of action. It * receives the currently read line and dispatch the work depending on the * context. */ @@ -657,7 +657,7 @@ void doDeleteValue(LPSTR line) } /****************************************************************************** - * This funtion is the main entry point to the deleteKey type of action. It + * This function is the main entry point to the deleteKey type of action. It * receives the currently read line and dispatch the work depending on the * context. */ @@ -667,7 +667,7 @@ void doDeleteKey(LPSTR line) } /****************************************************************************** - * This funtion is the main entry point to the createKey type of action. It + * This function is the main entry point to the createKey type of action. It * receives the currently read line and dispatch the work depending on the * context. */ @@ -975,7 +975,7 @@ void processRegLines(FILE *in, CommandAPI command) } /****************************************************************************** - * This funtion is the main entry point to the registerDLL action. It + * This function is the main entry point to the registerDLL action. It * receives the currently read line, then loads and registers the requested DLLs */ void doRegisterDLL(LPSTR stdInput) @@ -1008,7 +1008,7 @@ void doRegisterDLL(LPSTR stdInput) } /****************************************************************************** - * This funtion is the main entry point to the unregisterDLL action. It + * This function is the main entry point to the unregisterDLL action. It * receives the currently read line, then loads and unregisters the requested DLLs */ void doUnregisterDLL(LPSTR stdInput) diff --git a/programs/rundll32/rundll32.c b/programs/rundll32/rundll32.c index 4a11d48dfa1..1ab93c17437 100644 --- a/programs/rundll32/rundll32.c +++ b/programs/rundll32/rundll32.c @@ -179,14 +179,14 @@ static LPWSTR GetNextArg(LPWSTR *cmdline) } else if (*s=='"') { /* '"' */ if ((bcount & 1)==0) { - /* Preceeded by an even number of '\', this is half that + /* Preceded by an even number of '\', this is half that * number of '\', plus a quote which we erase. */ d-=bcount/2; in_quotes=!in_quotes; s++; } else { - /* Preceeded by an odd number of '\', this is half that + /* Preceded by an odd number of '\', this is half that * number of '\' followed by a '"' */ d=d-bcount/2-1; diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 53612583731..5e806c85039 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -2158,7 +2158,7 @@ static void init_output(HWND hwnd) static void draw_item(Pane* pane, LPDRAWITEMSTRUCT dis, Entry* entry, int calcWidthCol); -/* calculate prefered width for all visible columns */ +/* calculate preferred width for all visible columns */ static BOOL calc_widths(Pane* pane, BOOL anyway) { @@ -2245,7 +2245,7 @@ static BOOL calc_widths(Pane* pane, BOOL anyway) } -/* calculate one prefered column width */ +/* calculate one preferred column width */ static void calc_single_width(Pane* pane, int col) { diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c index d475afa3725..70e4b904d40 100644 --- a/tools/widl/write_msft.c +++ b/tools/widl/write_msft.c @@ -76,7 +76,7 @@ typedef struct tagMSFT_ImpFile { int guid; LCID lcid; int version; - char filename[0]; /* preceeded by two bytes of encoded (length << 2) + flags in the low two bits. */ + char filename[0]; /* preceded by two bytes of encoded (length << 2) + flags in the low two bits. */ } MSFT_ImpFile; typedef struct _msft_typelib_t diff --git a/tools/wrc/newstruc.c b/tools/wrc/newstruc.c index 499844a9f05..c9c056082f1 100644 --- a/tools/wrc/newstruc.c +++ b/tools/wrc/newstruc.c @@ -679,8 +679,8 @@ cursor_group_t *new_cursor_group(raw_data_t *rd, int *memopt) * The "LIST" tag may occur several times and may encapsulate different * tags. The `steps' is the number of "icon" tags found (actually the * number of steps specified in the aniheader_t structure). The "seq "uence - * tag can be ommitted, in which case the sequence is equal to the sequence - * of "icon"s found in the file. Also "rate" may be ommitted, in which case + * tag can be omitted, in which case the sequence is equal to the sequence + * of "icon"s found in the file. Also "rate" may be omitted, in which case * the default from the aniheader_t structure is used. * * An animated cursor puts `.cur' formatted files into each "icon" tag, diff --git a/windows/cursoricon.c b/windows/cursoricon.c index 69f38b030c6..f2464fb194d 100644 --- a/windows/cursoricon.c +++ b/windows/cursoricon.c @@ -586,7 +586,7 @@ static BOOL CURSORICON_SimulateLoadingFromResourceW( LPCWSTR filename, BOOL fCur *ptr = NULL; if (!(bits = map_fileW( filename, &filesize ))) return FALSE; - /* FIXME: test for inimated icons + /* FIXME: test for animated icons * hack to load the first icon from the *.ani file */ if ( *(LPDWORD)bits==0x46464952 ) /* "RIFF" */ diff --git a/windows/spy.c b/windows/spy.c index 3b3819d3317..771f9788186 100644 --- a/windows/spy.c +++ b/windows/spy.c @@ -1325,7 +1325,7 @@ const USER_MSG *lastmsg; /* pointer to last USER_MSG for class */ /* To dump memory at the lParam for any of these messages, */ /* replace the "0" with a "SZOF(structure)", or with a */ -/* number. (First method prefered.) */ +/* number. (First method preferred.) */ #define RB_GETBANDINFO_OLD (WM_USER+5) /* obsoleted after IE3, but we have to support it anyway */ diff --git a/windows/user.c b/windows/user.c index e0a70e9759e..f758530b662 100644 --- a/windows/user.c +++ b/windows/user.c @@ -303,7 +303,7 @@ static HANDLE *USER_GetProcessHandleList(void) if (!r) break; - /* don't kill outselves */ + /* don't kill ourselves */ if (GetCurrentProcessId() == pe.th32ProcessID ) continue;