Documentation spelling fixes.

This commit is contained in:
Jon Griffiths 2005-02-25 14:07:56 +00:00 committed by Alexandre Julliard
parent b1aad5d86f
commit eb5bf7dd38
34 changed files with 73 additions and 73 deletions

View File

@ -421,7 +421,7 @@ INT WINAPI StrCmpNW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen)
/************************************************************************** /**************************************************************************
* StrRChrA [COMCTL32.351] * StrRChrA [COMCTL32.351]
* *
* Find the last occurence of a character in string. * Find the last occurrence of a character in string.
* *
* PARAMS * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in
@ -572,7 +572,7 @@ LPWSTR WINAPI StrChrIW(LPCWSTR lpszStr, WCHAR ch)
/************************************************************************* /*************************************************************************
* StrRStrIA [COMCTL32.372] * StrRStrIA [COMCTL32.372]
* *
* Find the last occurence of a substring within a string. * Find the last occurrence of a substring within a string.
* *
* PARAMS * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in
@ -580,7 +580,7 @@ LPWSTR WINAPI StrChrIW(LPCWSTR lpszStr, WCHAR ch)
* lpszSearch [I] String to look for * lpszSearch [I] String to look for
* *
* RETURNS * 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) LPSTR WINAPI StrRStrIA(LPCSTR lpszStr, LPCSTR lpszEnd, LPCSTR lpszSearch)
{ {
@ -709,7 +709,7 @@ int WINAPI StrCSpnIW(LPCWSTR lpszStr, LPCWSTR lpszMatch)
/************************************************************************** /**************************************************************************
* StrRChrIA [COMCTL32.368] * 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 * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in

View File

@ -131,8 +131,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
* COMDLG32_AllocMem (internal) * COMDLG32_AllocMem (internal)
* Get memory for internal datastructure plus stringspace etc. * Get memory for internal datastructure plus stringspace etc.
* RETURNS * RETURNS
* Pointer to a heap block: Succes * Success: Pointer to a heap block
* NULL: Failure * Failure: null
*/ */
LPVOID COMDLG32_AllocMem( LPVOID COMDLG32_AllocMem(
int size /* [in] Block size to allocate */ int size /* [in] Block size to allocate */

View File

@ -692,7 +692,7 @@ static BOOL COMM_GetCommError(HANDLE handle, LPDWORD lperror)
* Only TIOCSBRK and TIOCCBRK are supported. * Only TIOCSBRK and TIOCCBRK are supported.
*/ */
BOOL WINAPI SetCommBreak( 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 */ #if defined(TIOCSBRK) && defined(TIOCCBRK) /* check if available for compilation */
int fd,result; int fd,result;
@ -1395,7 +1395,7 @@ BOOL WINAPI SetCommState(
case ONESTOPBIT: case ONESTOPBIT:
port.c_cflag &= ~CSTOPB; port.c_cflag &= ~CSTOPB;
break; break;
case ONE5STOPBITS: /* wil be selected if bytesize is 5 */ case ONE5STOPBITS: /* will be selected if bytesize is 5 */
case TWOSTOPBITS: case TWOSTOPBITS:
port.c_cflag |= CSTOPB; port.c_cflag |= CSTOPB;
break; break;

View File

@ -192,7 +192,7 @@ static void WCEL_DeleteString(WCEL_Context* ctx, int beg, int end)
/* completely erase all the others (full lines) */ /* completely erase all the others (full lines) */
for (i = cbeg.Y + 1; i < cend.Y; i++) for (i = cbeg.Y + 1; i < cend.Y; i++)
CONSOLE_FillLineUniform(ctx->hConOut, 0, i, ctx->csbi.dwSize.X, &ci); 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); CONSOLE_FillLineUniform(ctx->hConOut, 0, cend.Y, cend.X, &ci);
} }
ctx->len -= str_len; ctx->len -= str_len;

View File

@ -1271,14 +1271,14 @@ static char **build_argv( const WCHAR *cmdlineW, int reserved )
} else if (*s=='"') { } else if (*s=='"') {
/* '"' */ /* '"' */
if ((bcount & 1)==0) { 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. * number of '\', plus a '"' which we discard.
*/ */
d-=bcount/2; d-=bcount/2;
s++; s++;
in_quotes=!in_quotes; in_quotes=!in_quotes;
} else { } 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 '"' * number of '\' followed by a '"'
*/ */
d=d-bcount/2-1; d=d-bcount/2-1;

View File

@ -1216,7 +1216,7 @@ void WINAPI GetTEBSelectorFS16(void)
* If fn is given as NULL then the function expects hf16 to be valid. * If fn is given as NULL then the function expects hf16 to be valid.
*/ */
BOOL16 WINAPI IsPeFormat16( BOOL16 WINAPI IsPeFormat16(
LPSTR fn, /* [in] Filename to the executeable */ LPSTR fn, /* [in] Filename to the executable */
HFILE16 hf16) /* [in] An open file handle */ HFILE16 hf16) /* [in] An open file handle */
{ {
BOOL ret = FALSE; BOOL ret = FALSE;

View File

@ -239,7 +239,7 @@ static BOOL TIME_GetTimezoneBias(
*pTZinfo, /* [in] The time zone data. */ *pTZinfo, /* [in] The time zone data. */
FILETIME *lpFileTime, /* [in] The system or local time. */ FILETIME *lpFileTime, /* [in] The system or local time. */
BOOL islocal, /* [in] it is 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; LONG bias = pTZinfo->Bias;
@ -299,9 +299,9 @@ BOOL WINAPI SetLocalTime(
* Only the special case of disabled time adjustments is supported. * Only the special case of disabled time adjustments is supported.
*/ */
BOOL WINAPI GetSystemTimeAdjustment( BOOL WINAPI GetSystemTimeAdjustment(
PDWORD lpTimeAdjustment, /* [out] The clock adjustment per interupt in 100's of nanoseconds. */ PDWORD lpTimeAdjustment, /* [out] The clock adjustment per interrupt in 100's of nanoseconds. */
PDWORD lpTimeIncrement, /* [out] The time between clock interupts in 100's of nanoseconds. */ PDWORD lpTimeIncrement, /* [out] The time between clock interrupts in 100's of nanoseconds. */
PBOOL lpTimeAdjustmentDisabled) /* [out] The clock synchonisation has been disabled. */ PBOOL lpTimeAdjustmentDisabled) /* [out] The clock synchronisation has been disabled. */
{ {
*lpTimeAdjustment = 0; *lpTimeAdjustment = 0;
*lpTimeIncrement = 0; *lpTimeIncrement = 0;
@ -536,7 +536,7 @@ BOOL WINAPI GetProcessTimes(
HANDLE hprocess, /* [in] The process to be queried (obtained from PROCESS_QUERY_INFORMATION). */ HANDLE hprocess, /* [in] The process to be queried (obtained from PROCESS_QUERY_INFORMATION). */
LPFILETIME lpCreationTime, /* [out] The creation time of the process. */ LPFILETIME lpCreationTime, /* [out] The creation time of the process. */
LPFILETIME lpExitTime, /* [out] The exit time of the process if exited. */ 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. */ LPFILETIME lpUserTime) /* [out] The time spent in user routines in 100's of nanoseconds. */
{ {
struct tms tms; struct tms tms;

View File

@ -862,7 +862,7 @@ INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW puiHandler,
* id [I] id of the string to be loaded * id [I] id of the string to be loaded
* lpBuffer [O] buffer for the string to be written to * lpBuffer [O] buffer for the string to be written to
* nBufferMax [I] maximum size of the buffer in characters * 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 * RETURNS
* *

View File

@ -796,7 +796,7 @@ int _ismbslead(const unsigned char* start, const unsigned char* str)
*/ */
int _ismbstrail(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]); return !_ismbslead(start, str) && MSVCRT_isleadbyte(str[-1]);
} }

View File

@ -1452,7 +1452,7 @@ ULONG WINAPI RtlSizeHeap( HANDLE heap, ULONG flags, PVOID ptr )
/*********************************************************************** /***********************************************************************
* RtlValidateHeap (NTDLL.@) * 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 * PARAMS
* heap [I] Heap that block was allocated from * heap [I] Heap that block was allocated from

View File

@ -389,8 +389,8 @@ LONGLONG WINAPI RtlExtendedMagicDivide(
* NOTES * NOTES
* Instead of base 0 it uses 10 as base. * Instead of base 0 it uses 10 as base.
* Writes at most length characters to the string str. * Writes at most length characters to the string str.
* Str is '\0' terminated when length allowes it. * Str is '\0' terminated when length allows it.
* When str fits exactly in length characters the '\0' is ommitted. * When str fits exactly in length characters the '\0' is omitted.
* If value_ptr is NULL it crashes, as the native function does. * If value_ptr is NULL it crashes, as the native function does.
* *
* DIFFERENCES * DIFFERENCES

View File

@ -742,7 +742,7 @@ static ULONG NTDLL_FindSetRun(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpSize)
lpOut++; lpOut++;
} }
/* Count remaining contigious bits, if any */ /* Count remaining contiguous bits, if any */
if (*lpOut & 1) if (*lpOut & 1)
{ {
ULONG ulOffset = 0; ULONG ulOffset = 0;
@ -833,7 +833,7 @@ static ULONG NTDLL_FindClearRun(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpSiz
lpOut++; lpOut++;
} }
/* Count remaining contigious bits, if any */ /* Count remaining contiguous bits, if any */
if (!(*lpOut & 1)) if (!(*lpOut & 1))
{ {
ULONG ulOffset = 0; ULONG ulOffset = 0;

View File

@ -1353,8 +1353,8 @@ NTSTATUS WINAPI RtlAppendStringToString(
* *
* NOTES * NOTES
* if src is NULL dest is unchanged. * if src is NULL dest is unchanged.
* dest is '\0' terminated when the MaximumLength allowes it. * dest is '\0' terminated when the MaximumLength allows it.
* When dest fits exactly in MaximumLength characters the '\0' is ommitted. * When dest fits exactly in MaximumLength characters the '\0' is omitted.
* *
* DIFFERENCES * DIFFERENCES
* Does not write in the src->Buffer beyond MaximumLength when * Does not write in the src->Buffer beyond MaximumLength when
@ -1392,8 +1392,8 @@ NTSTATUS WINAPI RtlAppendUnicodeToString(
* *
* NOTES * NOTES
* if src->length is zero dest is unchanged. * if src->length is zero dest is unchanged.
* dest is '\0' terminated when the MaximumLength allowes it. * dest is '\0' terminated when the MaximumLength allows it.
* When dest fits exactly in MaximumLength characters the '\0' is ommitted. * When dest fits exactly in MaximumLength characters the '\0' is omitted.
* *
* DIFFERENCES * DIFFERENCES
* Does not write in the src->Buffer beyond MaximumLength when * Does not write in the src->Buffer beyond MaximumLength when
@ -1692,8 +1692,8 @@ NTSTATUS WINAPI RtlCharToInteger(
* NOTES * NOTES
* Instead of base 0 it uses 10 as base. * Instead of base 0 it uses 10 as base.
* Writes at most length characters to the string str. * Writes at most length characters to the string str.
* Str is '\0' terminated when length allowes it. * Str is '\0' terminated when length allows it.
* When str fits exactly in length characters the '\0' is ommitted. * When str fits exactly in length characters the '\0' is omitted.
*/ */
NTSTATUS WINAPI RtlIntegerToChar( NTSTATUS WINAPI RtlIntegerToChar(
ULONG value, /* [I] Value to be converted */ ULONG value, /* [I] Value to be converted */

View File

@ -190,7 +190,7 @@ DWORD WINAPI RtlLengthRequiredSid(DWORD nrofsubauths)
* Determine the amount of memory a SID is using * Determine the amount of memory a SID is using
* *
* PARAMS * PARAMS
* pSid [I] SID to ge the size of. * pSid [I] SID to get the size of.
* *
* RETURNS * RETURNS
* The size, in bytes, of pSid. * The size, in bytes, of pSid.
@ -213,7 +213,7 @@ DWORD WINAPI RtlLengthSid(PSID pSid)
* nSubAuthorityCount [I] Number of Sub Authorities * nSubAuthorityCount [I] Number of Sub Authorities
* *
* RETURNS * 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. * Failure: FALSE, if nSubAuthorityCount is >= SID_MAX_SUB_AUTHORITIES.
*/ */
BOOL WINAPI RtlInitializeSid( BOOL WINAPI RtlInitializeSid(

View File

@ -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. * 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 * 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 ) BOOL OLEMenu_SetIsServerMenu( HMENU hmenu, OleMenuDescriptor *pOleMenuDescriptor )
{ {

View File

@ -106,7 +106,7 @@ typedef struct OLEPictureImpl {
IPersistStreamVtbl *lpvtbl3; IPersistStreamVtbl *lpvtbl3;
IConnectionPointContainerVtbl *lpvtbl4; IConnectionPointContainerVtbl *lpvtbl4;
/* Object referenece count */ /* Object reference count */
DWORD ref; DWORD ref;
/* We own the object and must destroy it ourselves */ /* 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); TRACE("(%p)->(%p).\n", This, pdwAttr);
*pdwAttr = 0; *pdwAttr = 0;
switch (This->desc.picType) { 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_ICON: *pdwAttr = PICTURE_TRANSPARENT;break;
case PICTYPE_METAFILE: *pdwAttr = PICTURE_TRANSPARENT|PICTURE_SCALABLE;break; case PICTYPE_METAFILE: *pdwAttr = PICTURE_TRANSPARENT|PICTURE_SCALABLE;break;
default:FIXME("Unknown pictype %d\n",This->desc.picType);break; default:FIXME("Unknown pictype %d\n",This->desc.picType);break;

View File

@ -4498,7 +4498,7 @@ static void test_VarBoolFromStr(void)
CONVERT_STR(VarBoolFromStr,"faux",0); EXPECT_MISMATCH; CONVERT_STR(VarBoolFromStr,"faux",0); EXPECT_MISMATCH;
/* But accepted if this flag is given */ /* But accepted if this flag is given */
CONVERT_STR(VarBoolFromStr,"faux",VARIANT_LOCALBOOL); EXPECT(VARIANT_FALSE); 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); CONVERT_STR(VarBoolFromStr,"Faux",VARIANT_LOCALBOOL); EXPECT(VARIANT_FALSE);
/* Changing the locale prevents the localised text from being compared - /* Changing the locale prevents the localised text from being compared -

View File

@ -866,7 +866,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength);
/*======================= ITypeInfo implementation =======================*/ /*======================= ITypeInfo implementation =======================*/
/* data for refernced types */ /* data for referenced types */
typedef struct tagTLBRefType typedef struct tagTLBRefType
{ {
INT index; /* Type index for internal ref or for external ref 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; 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. * 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 * 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); 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 */ managable copy of it into this */
typedef struct { typedef struct {
WORD small_no; WORD small_no;
@ -4116,7 +4116,7 @@ static ULONG WINAPI ITypeInfo_fnRelease(ITypeInfo2 *iface)
TRACE("(%p)->(%lu)\n",This, ref); TRACE("(%p)->(%lu)\n",This, ref);
if (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 */ it means that funtion is called by ITypeLi2_Release */
ITypeLib2_Release((ITypeLib2*)This->pTypeLib); ITypeLib2_Release((ITypeLib2*)This->pTypeLib);
} else { } else {

View File

@ -140,7 +140,7 @@ typedef struct tagMSFT_ImpFile {
int guid; int guid;
LCID lcid; LCID lcid;
int version; 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; } MSFT_ImpFile;
typedef struct tagICreateTypeLib2Impl typedef struct tagICreateTypeLib2Impl
@ -2055,7 +2055,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetFuncCustData(
static HRESULT WINAPI ICreateTypeInfo2_fnSetParamCustData( static HRESULT WINAPI ICreateTypeInfo2_fnSetParamCustData(
ICreateTypeInfo2* iface, /* [I] The typeinfo in which to set the custom data. */ 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 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. */ REFGUID guid, /* [I] The GUID used as a key to retrieve the custom data. */
VARIANT* pVarVal) /* [I] The custom data. */ VARIANT* pVarVal) /* [I] The custom data. */
{ {

View File

@ -885,7 +885,7 @@ HRESULT WINAPI VarTokenizeFormatString(LPOLESTR lpszFormat, LPBYTE rgbTok,
TRACE("h\n"); TRACE("h\n");
} }
fmt_state &= ~FMT_STATE_OPEN_COPY; 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. * 'mm' indicates minutes, not months.
*/ */
fmt_state |= FMT_STATE_SEEN_HOURS; fmt_state |= FMT_STATE_SEEN_HOURS;

View File

@ -199,7 +199,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
/* '"' */ /* '"' */
if ((bcount & 1)==0) 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. * number of '\', plus a quote which we erase.
*/ */
d-=bcount/2; d-=bcount/2;
@ -208,7 +208,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
} }
else 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 '"' * number of '\' followed by a '"'
*/ */
d=d-bcount/2-1; d=d-bcount/2-1;

View File

@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
* when you right-click on a file). * when you right-click on a file).
* *
* HELPERS * 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 * AssocQueryKeyA(), AssocQueryStringA() and AssocQueryStringByKeyA(). These
* create an IQueryAssociations object, perform the requested actions * create an IQueryAssociations object, perform the requested actions
* and then dispose of the object. Alternatively, you can create an instance * and then dispose of the object. Alternatively, you can create an instance

View File

@ -534,7 +534,7 @@ LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
/************************************************************************* /*************************************************************************
* StrRStrIA [SHLWAPI.@] * StrRStrIA [SHLWAPI.@]
* *
* Find the last occurence of a substring within a string. * Find the last occurrence of a substring within a string.
* *
* PARAMS * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in
@ -542,7 +542,7 @@ LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
* lpszSearch [I] String to look for * lpszSearch [I] String to look for
* *
* RETURNS * 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) LPSTR WINAPI StrRStrIA(LPCSTR lpszStr, LPCSTR lpszEnd, LPCSTR lpszSearch)
{ {
@ -711,7 +711,7 @@ int WINAPI StrToIntW(LPCWSTR lpszStr)
* NOTES * NOTES
* Leading whitespace, '-' and '+' are allowed before the number. If * Leading whitespace, '-' and '+' are allowed before the number. If
* dwFlags includes STIF_SUPPORT_HEX, hexadecimal numbers are allowed, 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 * the string is treated as a decimal string. A leading '-' is ignored for
* hexadecimal numbers. * hexadecimal numbers.
*/ */
@ -1171,7 +1171,7 @@ static LPWSTR WINAPI SHLWAPI_StrRChrHelperW(LPCWSTR lpszStr,
/************************************************************************** /**************************************************************************
* StrRChrA [SHLWAPI.@] * StrRChrA [SHLWAPI.@]
* *
* Find the last occurence of a character in string. * Find the last occurrence of a character in string.
* *
* PARAMS * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in
@ -1205,7 +1205,7 @@ LPWSTR WINAPI StrRChrW(LPCWSTR lpszStr, LPCWSTR lpszEnd, WORD ch)
/************************************************************************** /**************************************************************************
* StrRChrIA [SHLWAPI.@] * 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 * PARAMS
* lpszStr [I] String to search in * lpszStr [I] String to search in

View File

@ -74,7 +74,7 @@ WORD WINAPI GetW32SysVersion16(void)
* dunno what. * dunno what.
*/ */
WORD WINAPI GetPEResourceTable16( WORD WINAPI GetPEResourceTable16(
HFILE16 hf /* [in] filedescriptor to opened executeable */ HFILE16 hf /* [in] Handle of executable file */
) { ) {
return 0; return 0;
} }
@ -90,12 +90,12 @@ DWORD WINAPI LoadPeResource16(WORD x,SEGPTR y) {
/********************************************************************** /**********************************************************************
* IsPeFormat (W32SYS.2) * IsPeFormat (W32SYS.2)
* Checks the passed filename if it is a PE format executeable * Check if a file is a PE format executable.
* RETURNS * RETURNS
* TRUE, if it is. * TRUE, if it is.
* FALSE if not. * 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 */ HFILE16 hf16 ) /* [in] open file, if filename is NULL */
{ {
BOOL16 ret = FALSE; BOOL16 ret = FALSE;

View File

@ -124,7 +124,7 @@ BOOL PSDRV_Rectangle( PSDRV_PDEVICE *physDev, INT left, INT top, INT right, INT
rect.bottom = bottom; rect.bottom = bottom;
LPtoDP( physDev->hdc, (POINT *)&rect, 2 ); 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 and our rop is R2_NOP, then we output the string below. This is used in
Office 2k when inserting eps files */ Office 2k when inserting eps files */
if(physDev->job.in_passthrough && !physDev->job.had_passthrough_rect && GetROP2(physDev->hdc) == R2_NOP) { if(physDev->job.in_passthrough && !physDev->job.had_passthrough_rect && GetROP2(physDev->hdc) == R2_NOP) {

View File

@ -52,7 +52,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wininet); WINE_DEFAULT_DEBUG_CHANNEL(wininet);
/* FIXME!!!!!! /* 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. * as they are designed for unix sockets.
* SSL stuff should use crypt32.dll * SSL stuff should use crypt32.dll
*/ */
@ -74,7 +74,7 @@ static SSL_CTX *ctx;
#define MAKE_FUNCPTR(f) static typeof(f) * p##f #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_library_init);
MAKE_FUNCPTR(SSL_load_error_strings); MAKE_FUNCPTR(SSL_load_error_strings);
MAKE_FUNCPTR(SSLv23_method); MAKE_FUNCPTR(SSLv23_method);

View File

@ -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 * receives the currently read line and dispatch the work depending on the
* context. * 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 * receives the currently read line and dispatch the work depending on the
* context. * 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 * receives the currently read line and dispatch the work depending on the
* context. * 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 * receives the currently read line and dispatch the work depending on the
* context. * 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 * receives the currently read line, then loads and registers the requested DLLs
*/ */
void doRegisterDLL(LPSTR stdInput) 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 * receives the currently read line, then loads and unregisters the requested DLLs
*/ */
void doUnregisterDLL(LPSTR stdInput) void doUnregisterDLL(LPSTR stdInput)

View File

@ -179,14 +179,14 @@ static LPWSTR GetNextArg(LPWSTR *cmdline)
} else if (*s=='"') { } else if (*s=='"') {
/* '"' */ /* '"' */
if ((bcount & 1)==0) { 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. * number of '\', plus a quote which we erase.
*/ */
d-=bcount/2; d-=bcount/2;
in_quotes=!in_quotes; in_quotes=!in_quotes;
s++; s++;
} else { } 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 '"' * number of '\' followed by a '"'
*/ */
d=d-bcount/2-1; d=d-bcount/2-1;

View File

@ -2158,7 +2158,7 @@ static void init_output(HWND hwnd)
static void draw_item(Pane* pane, LPDRAWITEMSTRUCT dis, Entry* entry, int calcWidthCol); 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) 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) static void calc_single_width(Pane* pane, int col)
{ {

View File

@ -76,7 +76,7 @@ typedef struct tagMSFT_ImpFile {
int guid; int guid;
LCID lcid; LCID lcid;
int version; 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; } MSFT_ImpFile;
typedef struct _msft_typelib_t typedef struct _msft_typelib_t

View File

@ -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 * The "LIST" tag may occur several times and may encapsulate different
* tags. The `steps' is the number of "icon" tags found (actually the * tags. The `steps' is the number of "icon" tags found (actually the
* number of steps specified in the aniheader_t structure). The "seq "uence * 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 * 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 ommitted, in which case * of "icon"s found in the file. Also "rate" may be omitted, in which case
* the default from the aniheader_t structure is used. * the default from the aniheader_t structure is used.
* *
* An animated cursor puts `.cur' formatted files into each "icon" tag, * An animated cursor puts `.cur' formatted files into each "icon" tag,

View File

@ -586,7 +586,7 @@ static BOOL CURSORICON_SimulateLoadingFromResourceW( LPCWSTR filename, BOOL fCur
*ptr = NULL; *ptr = NULL;
if (!(bits = map_fileW( filename, &filesize ))) return FALSE; 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 * hack to load the first icon from the *.ani file
*/ */
if ( *(LPDWORD)bits==0x46464952 ) /* "RIFF" */ if ( *(LPDWORD)bits==0x46464952 ) /* "RIFF" */

View File

@ -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, */ /* To dump memory at the lParam for any of these messages, */
/* replace the "0" with a "SZOF(structure)", or with a */ /* 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 */ #define RB_GETBANDINFO_OLD (WM_USER+5) /* obsoleted after IE3, but we have to support it anyway */

View File

@ -303,7 +303,7 @@ static HANDLE *USER_GetProcessHandleList(void)
if (!r) if (!r)
break; break;
/* don't kill outselves */ /* don't kill ourselves */
if (GetCurrentProcessId() == pe.th32ProcessID ) if (GetCurrentProcessId() == pe.th32ProcessID )
continue; continue;