From e8dbd66c239708a344960e357ac2e95f450f6a85 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 10 Apr 2008 18:24:54 -0500 Subject: [PATCH] oleaut32: Spelling fixes. --- dlls/oleaut32/dispatch.c | 2 +- dlls/oleaut32/olepicture.c | 2 +- dlls/oleaut32/recinfo.c | 2 +- dlls/oleaut32/safearray.c | 2 +- dlls/oleaut32/tests/vartest.c | 6 +++--- dlls/oleaut32/tests/vartype.c | 4 ++-- dlls/oleaut32/typelib.c | 6 +++--- dlls/oleaut32/ungif.c | 4 ++-- dlls/oleaut32/ungif.h | 2 +- dlls/oleaut32/varformat.c | 2 +- dlls/oleaut32/variant.c | 12 ++++++------ dlls/oleaut32/vartype.c | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dlls/oleaut32/dispatch.c b/dlls/oleaut32/dispatch.c index 8ab1c5e73f5..057e39a46a4 100644 --- a/dlls/oleaut32/dispatch.c +++ b/dlls/oleaut32/dispatch.c @@ -192,7 +192,7 @@ HRESULT WINAPI CreateStdDispatch( * Method, property and parameter names can be localised. The details required to * map names to methods and parameters are collected in a type library, usually * output by an IDL compiler using the objects IDL description. This information is - * accessible programatically through the ITypeLib interface (for a type library), + * accessible programmatically through the ITypeLib interface (for a type library), * and the ITypeInfo interface (for an object within the type library). Type information * can also be created at run-time using CreateDispTypeInfo(). * diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 47b146169b7..05a29344021 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -22,7 +22,7 @@ * * BUGS * - * Support PICTYPE_BITMAP and PICTYPE_ICON, altough only bitmaps very well.. + * Support PICTYPE_BITMAP and PICTYPE_ICON, although only bitmaps very well.. * Lots of methods are just stubs. * * diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c index cc111533e46..710cf1a58d2 100644 --- a/dlls/oleaut32/recinfo.c +++ b/dlls/oleaut32/recinfo.c @@ -211,7 +211,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvEx var = ((PBYTE)pvExisting)+This->fields[i].offset; switch(This->fields[i].vt) { case VT_BSTR: - /* NOTE: Windows implementatino reads DWORD (len) before string, + /* NOTE: Windows implementation reads DWORD (len) before string, * but it seems to do nothing with this */ *(BSTR*)var = NULL; break; diff --git a/dlls/oleaut32/safearray.c b/dlls/oleaut32/safearray.c index 5a16716067a..34cfd9141c8 100644 --- a/dlls/oleaut32/safearray.c +++ b/dlls/oleaut32/safearray.c @@ -483,7 +483,7 @@ HRESULT WINAPI SafeArrayAllocDescriptor(UINT cDims, SAFEARRAY **ppsaOut) * Failure: An HRESULT error code indicating the error. * * NOTES - * - This function does not chack that vt is an allowed VARTYPE. + * - This function does not check that vt is an allowed VARTYPE. * - Unlike SafeArrayAllocDescriptor(), vt is associated with the array. * See SafeArray. */ diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c index b20ed6cd695..c86ec95ae35 100644 --- a/dlls/oleaut32/tests/vartest.c +++ b/dlls/oleaut32/tests/vartest.c @@ -1050,7 +1050,7 @@ static void test_VarParseNumFromStr(void) EXPECT(1,NUMPRS_HEX_OCT,0,1,0,0); EXPECT2(0,FAILDIG); - /* Doesn't recognise hex in .asm sytax */ + /* Doesn't recognise hex in .asm syntax */ CONVERT("0h", NUMPRS_HEX_OCT); EXPECT(1,NUMPRS_HEX_OCT,0,1,0,0); EXPECT2(0,FAILDIG); @@ -5261,7 +5261,7 @@ static void test_VarCat(void) } } - /* Runnning single comparison tests to compare outputs */ + /* Running single comparison tests to compare outputs */ /* Test concat strings */ V_VT(&left) = VT_BSTR; @@ -6273,7 +6273,7 @@ static void test_VarCmp(void) } } - /* VARCMP{,EX} run each 4 tests with a permutation of all posible + /* VARCMP{,EX} run each 4 tests with a permutation of all possible input variants with (1) and without (0) VT_RESERVED set. The order of the permutations is (0,0); (1,0); (0,1); (1,1) */ VARCMP(INT,4711,I2,4711,VARCMP_EQ); diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index b2ad4153072..acd393a9f6f 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -3322,7 +3322,7 @@ static void test_VarDateFromStr(void) CHECKPTR(VarDateFromStr); CHECKPTR(SystemTimeToVariantTime); - /* Some date formats are relative, so we need to find the cuurent year */ + /* Some date formats are relative, so we need to find the current year */ GetSystemTime(&st); st.wHour = st.wMinute = st.wSecond = st.wMilliseconds = 0; DFS(NULL); EXPECT_MISMATCH; @@ -4928,7 +4928,7 @@ static void test_VarBstrCmp(void) bstr = SysAllocString(sz); bstrempty = SysAllocString(szempty); - /* NULL handling. Yepp, MSDN is totaly wrong here */ + /* NULL handling. Yepp, MSDN is totally wrong here */ VARBSTRCMP(NULL,NULL,0,VARCMP_EQ); VARBSTRCMP(bstr,NULL,0,VARCMP_GT); VARBSTRCMP(NULL,bstr,0,VARCMP_LT); diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 2d0e7ba0c04..123810b2690 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -998,7 +998,7 @@ typedef struct tagITypeInfoImpl const ITypeInfo2Vtbl *lpVtbl; const ITypeCompVtbl *lpVtblTypeComp; LONG ref; - BOOL no_free_data; /* don't free data structurees */ + BOOL no_free_data; /* don't free data structures */ TYPEATTR TypeAttr ; /* _lots_ of type information. */ ITypeLibImpl * pTypeLib; /* back pointer to typelib */ int index; /* index in this typelib; */ @@ -2624,7 +2624,7 @@ static ITypeLib2* ITypeLib2_Constructor_MSFT(LPVOID pLib, DWORD dwTLBLength) pTypeLibImpl->ctCustData = MSFT_CustData(&cx, tlbHeader.CustomDataOffset, &pTypeLibImpl->pCustData); } - /* fill in typedescriptions */ + /* fill in type descriptions */ if(tlbSegDir.pTypdescTab.length > 0) { int i, j, cTD = tlbSegDir.pTypdescTab.length / (2*sizeof(INT)); @@ -3377,7 +3377,7 @@ static void SLTG_ProcessDispatch(char *pBlk, ITypeInfoImpl *pTI, SLTG_DoFuncs(pBlk, pBlk + pTITail->funcs_off, pTI, pTITail->cFuncs, pNameTable, ref_lookup); /* this is necessary to cope with MSFT typelibs that set cFuncs to the number - * of dispinterface functons including the IDispatch ones, so + * of dispinterface functions including the IDispatch ones, so * ITypeInfo::GetFuncDesc takes the real value for cFuncs from cbSizeVft */ pTI->TypeAttr.cbSizeVft = pTI->TypeAttr.cFuncs * sizeof(void *); diff --git a/dlls/oleaut32/ungif.c b/dlls/oleaut32/ungif.c index 39b89845171..9cb56932bca 100644 --- a/dlls/oleaut32/ungif.c +++ b/dlls/oleaut32/ungif.c @@ -616,7 +616,7 @@ DGifDecompressLine(GifFileType * GifFile, LastCode = Private->LastCode; if (StackPtr != 0) { - /* Let pop the stack off before continueing to read the gif file: */ + /* Let pop the stack off before continuing to read the gif file: */ while (StackPtr != 0 && i < LineLen) Line[i++] = Stack[--StackPtr]; } @@ -626,7 +626,7 @@ DGifDecompressLine(GifFileType * GifFile, return GIF_ERROR; if (CrntCode == EOFCode) { - /* Note however that usually we will not be here as we will stop + /* Note, however, that usually we will not be here as we will stop * decoding as soon as we got all the pixel, or EOF code will * not be read at all, and DGifGetLine/Pixel clean everything. */ if (i != LineLen - 1 || Private->PixelCount != 0) { diff --git a/dlls/oleaut32/ungif.h b/dlls/oleaut32/ungif.h index 6b54a1bd5ae..e71dad8b3aa 100644 --- a/dlls/oleaut32/ungif.h +++ b/dlls/oleaut32/ungif.h @@ -44,7 +44,7 @@ * History: * 14 Jun 89 - Version 1.0 by Gershon Elber. * 3 Sep 90 - Version 1.1 by Gershon Elber (Support for Gif89, Unique names) - * 15 Sep 90 - Version 2.0 by Eric S. Raymond (Changes to suoport GIF slurp) + * 15 Sep 90 - Version 2.0 by Eric S. Raymond (Changes to support GIF slurp) * 26 Jun 96 - Version 3.0 by Eric S. Raymond (Full GIF89 support) * 17 Dec 98 - Version 4.0 by Toshio Kuratomi (Fix extension writing code) *****************************************************************************/ diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c index 23b7e57a2e0..399009c8a3d 100644 --- a/dlls/oleaut32/varformat.c +++ b/dlls/oleaut32/varformat.c @@ -151,7 +151,7 @@ static const WCHAR szPercentZeroStar_d[] = { '%','0','*','d','\0' }; * Common format definitions */ - /* Fomat types */ + /* Format types */ #define FMT_TYPE_UNKNOWN 0x0 #define FMT_TYPE_GENERAL 0x1 #define FMT_TYPE_NUMBER 0x2 diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index abfcfcc2abd..c44d810cbf8 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -6,7 +6,7 @@ * Copyright 2005 Daniel Remenak * Copyright 2006 Google (Benjamin Arai) * - * The alorithm for conversion from Julian days to day/month/year is based on + * The algorithm for conversion from Julian days to day/month/year is based on * that devised by Henry Fliegel, as implemented in PostgreSQL, which is * Copyright 1994-7 Regents of the University of California * @@ -1108,7 +1108,7 @@ static HRESULT VARIANT_RollUdate(UDATE *lpUd) { lpUd->st.wMonth--; /* Previous month */ if (lpUd->st.wMonth == 2 && IsLeapYear(lpUd->st.wYear)) - lpUd->st.wDay = 29; /* Februaury has 29 days on leap years */ + lpUd->st.wDay = 29; /* February has 29 days on leap years */ else lpUd->st.wDay = days[lpUd->st.wMonth]; /* Last day of the month */ } @@ -1119,7 +1119,7 @@ static HRESULT VARIANT_RollUdate(UDATE *lpUd) /* Possibly need to roll the date forward */ if (lpUd->st.wMonth == 2 && IsLeapYear(lpUd->st.wYear)) - rollForward = lpUd->st.wDay - 29; /* Februaury has 29 days on leap years */ + rollForward = lpUd->st.wDay - 29; /* February has 29 days on leap years */ else rollForward = lpUd->st.wDay - days[lpUd->st.wMonth]; @@ -1915,7 +1915,7 @@ HRESULT WINAPI VarParseNumFromStr(OLECHAR *lpszStr, LCID lcid, ULONG dwFlags, * NOTES * - The smallest favoured type present in dwVtBits that can represent the * number in pNumprs without losing precision is used. - * - Signed types are preferrred over unsigned types of the same size. + * - Signed types are preferred over unsigned types of the same size. * - Preferred types in order are: integer, float, double, currency then decimal. * - Rounding (dropping of decimal points) occurs without error. See VarI8FromR8() * for details of the rounding method. @@ -1924,7 +1924,7 @@ HRESULT WINAPI VarParseNumFromStr(OLECHAR *lpszStr, LCID lcid, ULONG dwFlags, * design?): If some other VTBIT's for integers are specified together * with VTBIT_I8 and the number will fit only in a VT_I8 Windows will "cast" * the number to the smallest requested integer truncating this way the - * number. Wine dosn't implement this "feature" (yet?). + * number. Wine doesn't implement this "feature" (yet?). */ HRESULT WINAPI VarNumFromParseNum(NUMPARSE *pNumprs, BYTE *rgbDig, ULONG dwVtBits, VARIANT *pVarDst) @@ -2517,7 +2517,7 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out) else hres = DISP_E_BADVARTYPE; - /* if resutl type is not S_OK, then no need to go further */ + /* if result type is not S_OK, then no need to go further */ if (hres != S_OK) { V_VT(out) = resultvt; diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index 82310388250..93c5615fb73 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -5311,7 +5311,7 @@ static HRESULT VARIANT_DI_normalize(VARIANT_DI * val, int exponent2, int isDoubl VARIANT_int_add(val->bitsnum, 3, &x, 1); } } - /* This step is requierd in order to remove excess bits of precision from the + /* This step is requiered in order to remove excess bits of precision from the end of the bit representation, down to the precision guaranteed by the floating point number. */ if (isDouble) { @@ -7348,7 +7348,7 @@ VARIANT_MakeDate_OK: * * RETURNS * Success: S_OK. pdateOut contains the converted value. - * FAILURE: An HRESULT error code indicating the prolem. + * FAILURE: An HRESULT error code indicating the problem. * * NOTES * Any date format that can be created using the date formats from lcid -- 2.11.4.GIT