From 760faf01a9b8ff7f5853b24918cb3decd11e2918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Wed, 3 Aug 2011 23:50:18 +0200 Subject: [PATCH] tests: Assorted spelling fixes. --- dlls/advapi32/tests/lsa.c | 2 +- dlls/advapi32/tests/registry.c | 2 +- dlls/advapi32/tests/security.c | 12 ++++++------ dlls/advpack/tests/install.c | 4 ++-- dlls/comctl32/tests/treeview.c | 2 +- dlls/d3d8/tests/device.c | 2 +- dlls/d3d9/tests/device.c | 4 ++-- dlls/d3drm/tests/d3drm.c | 4 ++-- dlls/ddraw/tests/d3d.c | 2 +- dlls/dplayx/tests/dplayx.c | 6 +++--- dlls/dsound/sound3d.c | 4 ++-- dlls/gameux/tests/gameexplorer.c | 4 ++-- dlls/gameux/tests/gamestatistics.c | 4 ++-- dlls/gdi32/tests/bitmap.c | 2 +- dlls/gdi32/tests/font.c | 2 +- dlls/gdi32/tests/path.c | 2 +- dlls/ieframe/tests/webbrowser.c | 8 ++++---- dlls/jscript/tests/activex.c | 4 ++-- dlls/kernel32/tests/comm.c | 4 ++-- dlls/kernel32/tests/format_msg.c | 2 +- dlls/kernel32/tests/process.c | 4 ++-- dlls/mapi32/tests/prop.c | 12 ++++++------ dlls/mapi32/tests/util.c | 4 ++-- dlls/mlang/tests/mlang.c | 2 +- dlls/mmdevapi/tests/mmdevenum.c | 2 +- dlls/mscoree/tests/mscoree.c | 2 +- dlls/msctf/tests/inputprocessor.c | 8 ++++---- dlls/msctf/threadmgr.c | 2 +- dlls/mshtml/htmlelem.c | 2 +- dlls/mshtml/htmlwindow.c | 2 +- dlls/mshtml/tests/dom.c | 2 +- dlls/mshtml/tests/htmldoc.c | 4 ++-- dlls/mshtml/tests/script.c | 2 +- dlls/msi/tests/automation.c | 2 +- dlls/msi/tests/format.c | 8 ++++---- dlls/msvcrt/tests/file.c | 2 +- dlls/msxml3/tests/domdoc.c | 12 ++++++------ dlls/msxml3/tests/saxreader.c | 4 ++-- dlls/ntdll/tests/atom.c | 2 +- dlls/ntdll/tests/exception.c | 4 ++-- dlls/ntdll/tests/large_int.c | 2 +- dlls/ntdll/tests/pipe.c | 12 ++++++------ dlls/ntdll/tests/rtlstr.c | 6 +++--- dlls/ole32/tests/storage32.c | 6 +++--- dlls/oleaut32/tests/olefont.c | 6 +++--- dlls/oleaut32/tests/safearray.c | 14 +++++++------- dlls/oleaut32/tests/varformat.c | 2 +- dlls/oleaut32/tests/vartest.c | 4 ++-- dlls/oleaut32/tests/vartype.c | 4 ++-- dlls/qmgr/tests/enum_files.c | 2 +- dlls/qmgr/tests/enum_jobs.c | 2 +- dlls/qmgr/tests/file.c | 2 +- dlls/rpcrt4/tests/rpc.c | 2 +- dlls/shdocvw/tests/shdocvw.c | 2 +- dlls/shell32/tests/ebrowser.c | 2 +- dlls/shell32/tests/shell32_test.h | 2 +- dlls/shell32/tests/shlfileop.c | 4 ++-- dlls/shell32/tests/shlfolder.c | 2 +- dlls/shlwapi/tests/clsid.c | 2 +- dlls/urlmon/tests/misc.c | 2 +- dlls/urlmon/tests/sec_mgr.c | 2 +- dlls/urlmon/tests/uri.c | 4 ++-- dlls/urlmon/tests/url.c | 6 +++--- dlls/user32/tests/clipboard.c | 2 +- dlls/user32/tests/cursoricon.c | 6 +++--- dlls/user32/tests/dce.c | 2 +- dlls/user32/tests/dde.c | 4 ++-- dlls/user32/tests/menu.c | 4 ++-- dlls/user32/tests/msg.c | 6 +++--- dlls/user32/tests/scroll.c | 6 +++--- dlls/user32/tests/sysparams.c | 2 +- dlls/user32/tests/win.c | 6 +++--- dlls/usp10/tests/usp10.c | 8 ++++---- dlls/winspool.drv/tests/info.c | 2 +- dlls/xmllite/tests/reader.c | 2 +- 75 files changed, 150 insertions(+), 150 deletions(-) diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c index f26bdb1870d..e5b84c7526e 100644 --- a/dlls/advapi32/tests/lsa.c +++ b/dlls/advapi32/tests/lsa.c @@ -255,7 +255,7 @@ static void test_LsaLookupNames2(void) if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH) { - skip("Non-english locale (skipping LsaLookupNames2 tests)\n"); + skip("Non-English locale (skipping LsaLookupNames2 tests)\n"); return; } diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c index 91164bd8c56..60bc4510fc8 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -845,7 +845,7 @@ static void test_reg_open_key(void) /* open same key twice */ ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkResult); ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", ret); - ok(hkResult != hkPreserve, "epxected hkResult != hkPreserve\n"); + ok(hkResult != hkPreserve, "expected hkResult != hkPreserve\n"); ok(hkResult != NULL, "hkResult != NULL\n"); RegCloseKey(hkResult); diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index a21989c28ea..db7df810114 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -239,8 +239,8 @@ static void test_sid(void) ok(pConvertStringSidToSidA("S-1-5-21-93476-23408-4576", &psid), "ConvertStringSidToSidA failed\n"); pisid = psid; ok(pisid->SubAuthorityCount == 4, "Invalid sub authority count - expected 4, got %d\n", pisid->SubAuthorityCount); - ok(pisid->SubAuthority[0] == 21, "Invalid subauthority 0 - expceted 21, got %d\n", pisid->SubAuthority[0]); - ok(pisid->SubAuthority[3] == 4576, "Invalid subauthority 0 - expceted 4576, got %d\n", pisid->SubAuthority[3]); + ok(pisid->SubAuthority[0] == 21, "Invalid subauthority 0 - expected 21, got %d\n", pisid->SubAuthority[0]); + ok(pisid->SubAuthority[3] == 4576, "Invalid subauthority 0 - expected 4576, got %d\n", pisid->SubAuthority[3]); LocalFree(str); LocalFree(psid); @@ -2156,7 +2156,7 @@ static void test_LookupAccountName(void) if (PRIMARYLANGID(GetSystemDefaultLangID()) != LANG_ENGLISH) { - skip("Non-english locale (test with hardcoded 'Everyone')\n"); + skip("Non-English locale (test with hardcoded 'Everyone')\n"); } else { @@ -2294,7 +2294,7 @@ static void test_LookupAccountName(void) if (PRIMARYLANGID(GetSystemDefaultLangID()) != LANG_ENGLISH) { - skip("Non-english locale (skipping well known name creation tests)\n"); + skip("Non-English locale (skipping well known name creation tests)\n"); return; } @@ -2781,7 +2781,7 @@ static void test_SetEntriesInAclW(void) if (PRIMARYLANGID(GetSystemDefaultLangID()) != LANG_ENGLISH) { - skip("Non-english locale (test with hardcoded 'Everyone')\n"); + skip("Non-English locale (test with hardcoded 'Everyone')\n"); } else { @@ -2912,7 +2912,7 @@ static void test_SetEntriesInAclA(void) if (PRIMARYLANGID(GetSystemDefaultLangID()) != LANG_ENGLISH) { - skip("Non-english locale (test with hardcoded 'Everyone')\n"); + skip("Non-English locale (test with hardcoded 'Everyone')\n"); } else { diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 91bef81a9f8..6a4d8d617a9 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -95,7 +95,7 @@ static void test_RunSetupCommand(void) hr = pRunSetupCommand(NULL, "idontexist.exe", "Install", systemdir, "Title", &hexe, 0, NULL); ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); - ok(hexe == NULL, "Expcted hexe to be NULL\n"); + ok(hexe == NULL, "Expected hexe to be NULL\n"); ok(!TerminateProcess(hexe, 0), "Expected TerminateProcess to fail\n"); /* try a bad directory */ @@ -103,7 +103,7 @@ static void test_RunSetupCommand(void) hr = pRunSetupCommand(NULL, "winver.exe", "Install", "non\\existent\\directory", "Title", &hexe, 0, NULL); ok(hr == HRESULT_FROM_WIN32(ERROR_DIRECTORY), "Expected HRESULT_FROM_WIN32(ERROR_DIRECTORY), got %d\n", hr); - ok(hexe == NULL, "Expcted hexe to be NULL\n"); + ok(hexe == NULL, "Expected hexe to be NULL\n"); ok(!TerminateProcess(hexe, 0), "Expected TerminateProcess to fail\n"); /* try to run an exe with the RSC_FLAG_INF flag */ diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index faa9553f54a..a55ae45b29b 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -1423,7 +1423,7 @@ static void test_TVS_SINGLEEXPAND(void) hTree = create_treeview_control(0); SetWindowLongA(hTree, GWL_STYLE, GetWindowLong(hTree, GWL_STYLE) | TVS_SINGLEEXPAND); - /* to avoid paiting related notifications */ + /* to avoid painting related notifications */ ShowWindow(hTree, SW_HIDE); fill_tree(hTree); diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index 9a4369b09d1..4824fd48165 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -1341,7 +1341,7 @@ static void test_scene(void) goto cleanup; } - /* Test an EndScene without beginscene. Should return an error */ + /* Test an EndScene without BeginScene. Should return an error */ hr = IDirect3DDevice8_EndScene(pDevice); ok(hr == D3DERR_INVALIDCALL, "IDirect3DDevice8_EndScene returned %#08x\n", hr); diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index 235b06f93ab..1e1527a2f75 100644 --- a/dlls/d3d9/tests/device.c +++ b/dlls/d3d9/tests/device.c @@ -300,7 +300,7 @@ static void test_swapchain(void) /* Get the implicit swapchain */ hr = IDirect3DDevice9_GetSwapChain(pDevice, 0, &swapchain0); - ok(SUCCEEDED(hr), "Failed to get the impicit swapchain (%08x)\n", hr); + ok(SUCCEEDED(hr), "Failed to get the implicit swapchain (%08x)\n", hr); if(swapchain0) IDirect3DSwapChain9_Release(swapchain0); /* Check if there is a back buffer */ @@ -1409,7 +1409,7 @@ static void test_scene(void) ok(hr == D3D_OK, "IDirect3DDevice9_GetCaps failed with %08x\n", hr); if(FAILED(hr)) goto cleanup; - /* Test an EndScene without beginscene. Should return an error */ + /* Test an EndScene without BeginScene. Should return an error */ hr = IDirect3DDevice9_EndScene(pDevice); ok(hr == D3DERR_INVALIDCALL, "IDirect3DDevice9_EndScene returned %08x\n", hr); diff --git a/dlls/d3drm/tests/d3drm.c b/dlls/d3drm/tests/d3drm.c index 1af90bc0413..267bd2d1237 100644 --- a/dlls/d3drm/tests/d3drm.c +++ b/dlls/d3drm/tests/d3drm.c @@ -98,12 +98,12 @@ static void MeshBuilderTest(void) info.lpMemory = data_bad_version; info.dSize = strlen(data_bad_version); hr = IDirect3DRMMeshBuilder_Load(pMeshBuilder, &info, NULL, D3DRMLOAD_FROMMEMORY, NULL, NULL); - ok(hr == D3DRMERR_BADFILE, "Sould have returned D3DRMERR_BADFILE (hr = %x)\n", hr); + ok(hr == D3DRMERR_BADFILE, "Should have returned D3DRMERR_BADFILE (hr = %x)\n", hr); info.lpMemory = data_no_mesh; info.dSize = strlen(data_no_mesh); hr = IDirect3DRMMeshBuilder_Load(pMeshBuilder, &info, NULL, D3DRMLOAD_FROMMEMORY, NULL, NULL); - ok(hr == D3DRMERR_NOTFOUND, "Sould have returned D3DRMERR_NOTFOUND (hr = %x)\n", hr); + ok(hr == D3DRMERR_NOTFOUND, "Should have returned D3DRMERR_NOTFOUND (hr = %x)\n", hr); info.lpMemory = data_ok; info.dSize = strlen(data_ok); diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index c7066f19eb6..0df378004d2 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -687,7 +687,7 @@ static void SceneTest(void) { HRESULT hr; - /* Test an EndScene without beginscene. Should return an error */ + /* Test an EndScene without BeginScene. Should return an error */ hr = IDirect3DDevice7_EndScene(lpD3DDevice); ok(hr == D3DERR_SCENE_NOT_IN_SCENE, "IDirect3DDevice7_EndScene returned %08x\n", hr); diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c index b9d641bc9c8..e020a47be35 100644 --- a/dlls/dplayx/tests/dplayx.c +++ b/dlls/dplayx/tests/dplayx.c @@ -99,7 +99,7 @@ static LPCSTR Guid2str(const GUID *guid) return "DPSPGUID_SERIAL"; if (IsEqualGUID(guid, &DPSPGUID_MODEM)) return "DPSPGUID_MODEM"; - /* DirectPlay Address ID's */ + /* DirectPlay Address IDs */ if (IsEqualGUID(guid, &DPAID_TotalSize)) return "DPAID_TotalSize"; if (IsEqualGUID(guid, &DPAID_ServiceProvider)) @@ -1730,7 +1730,7 @@ static void test_SessionDesc(void) hr = IDirectPlayX_SetSessionDesc( pDP[1], &dpsd, 0 ); checkHR( DPERR_ACCESSDENIED, hr ); - /* Trying to change inmutable properties */ + /* Trying to change immutable properties */ /* Flags */ hr = IDirectPlayX_SetSessionDesc( pDP[0], &dpsd, 0 ); checkHR( DP_OK, hr ); @@ -5001,7 +5001,7 @@ static void test_Send(void) (LPVOID) message, messageSize ); checkHR( DPERR_INVALIDPARAMS, hr ); - /* - Corerct flags, secure session incorrectly opened (without flags) */ + /* - Correct flags, secure session incorrectly opened (without flags) */ hr = IDirectPlayX_Close( pDP[0] ); checkHR( DP_OK, hr ); diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c index 252c7632667..5a0befd12d4 100644 --- a/dlls/dsound/sound3d.c +++ b/dlls/dsound/sound3d.c @@ -62,7 +62,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound3d); * Auxiliary functions */ -/* scalar product (i believe it's called dot product in english) */ +/* scalar product (I believe it's called dot product in English) */ static inline D3DVALUE ScalarProduct (const D3DVECTOR *a, const D3DVECTOR *b) { D3DVALUE c; @@ -72,7 +72,7 @@ static inline D3DVALUE ScalarProduct (const D3DVECTOR *a, const D3DVECTOR *b) return c; } -/* vector product (i believe it's called cross product in english */ +/* vector product (I believe it's called cross product in English */ static inline D3DVECTOR VectorProduct (const D3DVECTOR *a, const D3DVECTOR *b) { D3DVECTOR c; diff --git a/dlls/gameux/tests/gameexplorer.c b/dlls/gameux/tests/gameexplorer.c index e0781723b72..7be9c69ab9c 100644 --- a/dlls/gameux/tests/gameexplorer.c +++ b/dlls/gameux/tests/gameexplorer.c @@ -50,8 +50,8 @@ static LONG WINAPI (*_RegGetValueW)(HKEY,LPCWSTR,LPCWSTR,DWORD,LPDWORD,PVOID,LPD * available on older operating systems. * * Returns: - * TRUE procedures were loaded successfunnly - * FALSE procedures were not loaded successfunnly + * TRUE procedures were loaded successfully + * FALSE procedures were not loaded successfully */ static BOOL _loadDynamicRoutines(void) { diff --git a/dlls/gameux/tests/gamestatistics.c b/dlls/gameux/tests/gamestatistics.c index 5bae4c8fb3c..7d57b1f7f7b 100644 --- a/dlls/gameux/tests/gamestatistics.c +++ b/dlls/gameux/tests/gamestatistics.c @@ -113,7 +113,7 @@ static HRESULT _unregisterGame(void) { } /******************************************************************************* * _buildStatisticsFilePath - * Creates path to file contaning statistics of game with given id. + * Creates path to file containing statistics of game with given id. * * Parameters: * guidApplicationId [I] application id of game @@ -340,7 +340,7 @@ static void test_gamestatisticsmgr( void ) hr = IGameStatistics_Release(gs); ok(SUCCEEDED(hr), "releasing IGameStatistics returned error: 0x%08x\n", hr); - /* try to read written statisticd */ + /* try to read written statistics */ hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &dwOpenResult, &gs); ok(SUCCEEDED(hr), "GetGameStatistics returned error: 0x%08x\n", hr); ok(dwOpenResult == GAMESTATS_OPEN_OPENED, "GetGameStatistics returned invalid open result: 0x%x\n", dwOpenResult); diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index 7f9cfa33973..fd6062fcb97 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -595,7 +595,7 @@ static void test_dibsections(void) ok(ret, "GetDIBits doesn't work with a BITMAPCOREHEADER\n"); ok((pbci->bmciHeader.bcWidth == 16) && (pbci->bmciHeader.bcHeight == 16) && (pbci->bmciHeader.bcBitCount == 1) && (pbci->bmciHeader.bcPlanes == 1), - "GetDIBits did't fill in the BITMAPCOREHEADER structure properly\n"); + "GetDIBits didn't fill in the BITMAPCOREHEADER structure properly\n"); ret = GetDIBits(hdc, hdib, 0, 16, &coreBits, (BITMAPINFO*) pbci, DIB_RGB_COLORS); ok(ret, "GetDIBits doesn't work with a BITMAPCOREHEADER\n"); diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index 330d25e8c7c..aab371fce93 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2314,7 +2314,7 @@ typedef struct USHORT usFirstCharIndex; USHORT usLastCharIndex; /* According to the Apple spec, original version didn't have the below fields, - * version numbers were taked from the OpenType spec. + * version numbers were taken from the OpenType spec. */ /* version 0 (TrueType 1.5) */ USHORT sTypoAscender; diff --git a/dlls/gdi32/tests/path.c b/dlls/gdi32/tests/path.c index f4b83e2ddff..18dffa36284 100644 --- a/dlls/gdi32/tests/path.c +++ b/dlls/gdi32/tests/path.c @@ -91,7 +91,7 @@ static void test_widenpath(void) ret = WidenPath(hdc); ok(ret == TRUE, "WidenPath failed: %d\n", GetLastError()); nSize = GetPath(hdc, NULL, NULL, 0); - ok(nSize > 6, "WidenPath should compute a widdened path with a 1px wide pen. Path length is %d, should be more than 6\n", nSize); + ok(nSize > 6, "WidenPath should compute a widened path with a 1px wide pen. Path length is %d, should be more than 6\n", nSize); ReleaseDC(0, hdc); return; diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c index 29ca521914d..e628947a8fb 100644 --- a/dlls/ieframe/tests/webbrowser.c +++ b/dlls/ieframe/tests/webbrowser.c @@ -721,7 +721,7 @@ static void test_OnBeforeNavigate(const VARIANT *disp, const VARIANT *url, const if(V_VARIANTREF(headers)) { ok(V_VT(V_VARIANTREF(headers)) == VT_BSTR, "V_VT(V_VARIANTREF(headers))=%d, expected VT_BSTR\n", V_VT(V_VARIANTREF(headers))); - ok(V_BSTR(V_VARIANTREF(headers)) == NULL, "V_BSTR(V_VARIANTREF(heders)) = %p, expected NULL\n", + ok(V_BSTR(V_VARIANTREF(headers)) == NULL, "V_BSTR(V_VARIANTREF(headers)) = %p, expected NULL\n", V_BSTR(V_VARIANTREF(headers))); } @@ -729,7 +729,7 @@ static void test_OnBeforeNavigate(const VARIANT *disp, const VARIANT *url, const V_VT(cancel)); ok(V_BOOLREF(cancel) != NULL, "V_BOOLREF(pDispParams->rgvarg[0] == NULL)\n"); if(V_BOOLREF(cancel)) - ok(*V_BOOLREF(cancel) == VARIANT_FALSE, "*V_BOOLREF(calcel) = %x, expected VARIANT_FALSE\n", + ok(*V_BOOLREF(cancel) == VARIANT_FALSE, "*V_BOOLREF(cancel) = %x, expected VARIANT_FALSE\n", *V_BOOLREF(cancel)); } @@ -2258,9 +2258,9 @@ static void test_GetControlInfo(IUnknown *unk) return; hres = IOleControl_GetControlInfo(control, &info); - ok(hres == E_NOTIMPL, "GetControlInfo failed: %08x, exxpected E_NOTIMPL\n", hres); + ok(hres == E_NOTIMPL, "GetControlInfo failed: %08x, expected E_NOTIMPL\n", hres); hres = IOleControl_GetControlInfo(control, NULL); - ok(hres == E_NOTIMPL, "GetControlInfo failed: %08x, exxpected E_NOTIMPL\n", hres); + ok(hres == E_NOTIMPL, "GetControlInfo failed: %08x, expected E_NOTIMPL\n", hres); IOleControl_Release(control); } diff --git a/dlls/jscript/tests/activex.c b/dlls/jscript/tests/activex.c index c6080b06c6c..4e0fcf5ce18 100644 --- a/dlls/jscript/tests/activex.c +++ b/dlls/jscript/tests/activex.c @@ -773,7 +773,7 @@ static IDispatchEx *parse_procedure_a(IActiveScriptParse *parser, const char *sr HRESULT hres; hres = IUnknown_QueryInterface(parser, &IID_IActiveScriptParseProcedure2, (void**)&parse_proc); - ok(hres == S_OK, "Coult not get IActiveScriptParseProcedure2: %08x\n", hres); + ok(hres == S_OK, "Could not get IActiveScriptParseProcedure2: %08x\n", hres); str = a2bstr(src); hres = IActiveScriptParseProcedure2_64_ParseProcedureText(parse_proc, str, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, &disp); @@ -1073,7 +1073,7 @@ static BOOL register_activex(void) hres = CoRegisterClassObject(&CLSID_TestObj, (IUnknown *)&activex_cf, CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, ®id); - ok(hres == S_OK, "Could not register screipt engine: %08x\n", hres); + ok(hres == S_OK, "Could not register script engine: %08x\n", hres); return TRUE; } diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c index 322c2ca24ce..b08174f3520 100644 --- a/dlls/kernel32/tests/comm.c +++ b/dlls/kernel32/tests/comm.c @@ -807,7 +807,7 @@ static void test_waittxempty(HANDLE hcom) trace("WaitCommEvent for EV_TXEMPTY took %d ms\n", timediff); /* 050604: This shows a difference between XP (tested with mingw compiled crosstest): XP returns Writefile only after everything went out of the Serial port, - while wine returns immedate. + while wine returns immediately. Thus on XP, WaintCommEvent after setting the CommMask for EV_TXEMPTY nearly return immediate, while on wine the most time is spent here @@ -1341,7 +1341,7 @@ static void test_AbortWaitCts(HANDLE hcom) trace("Success 0x%08x err %d evtmask 0x%08x diff1 %d, diff2 %d\n", success, err, evtmask, after-before, after1-before); - ok(evtmask == 0, "Incorect EventMask 0x%08x returned on Wait aborted bu SetCommMask, expected 0x%08x\n", + ok(evtmask == 0, "Incorrect EventMask 0x%08x returned on Wait aborted bu SetCommMask, expected 0x%08x\n", evtmask, 0); ok(GetCommModemStatus(hcom, &evtmask), "GetCommModemStatus failed\n"); diff = after1 - before; diff --git a/dlls/kernel32/tests/format_msg.c b/dlls/kernel32/tests/format_msg.c index 8c256c53865..37ea3e9cbf9 100644 --- a/dlls/kernel32/tests/format_msg.c +++ b/dlls/kernel32/tests/format_msg.c @@ -1360,7 +1360,7 @@ static void test_message_from_hmodule(void) MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL); ok(ret == 0, "FormatMessageA returned non-zero\n"); - /*Test nonexistent messageID with varying language ID's Note: FormatMessageW behaves the same*/ + /*Test nonexistent messageID with varying language IDs Note: FormatMessageW behaves the same*/ SetLastError(0xdeadbeef); ret = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_HMODULE, h, 3044, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL); diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index bafd8a05c87..61e306950dc 100644 --- a/dlls/kernel32/tests/process.c +++ b/dlls/kernel32/tests/process.c @@ -832,7 +832,7 @@ static void test_CommandLine(void) startup.dwFlags = STARTF_USESHOWWINDOW; startup.wShowWindow = SW_SHOWNORMAL; - /* from Frangois */ + /* from François */ get_file_name(resfile); sprintf(buffer, "\"%s\" tests/process.c \"%s\" \"a\\\"b\\\\\" c\\\" d", selfname, resfile); ok(CreateProcessA(NULL, buffer, NULL, NULL, FALSE, 0L, NULL, NULL, &startup, &info), "CreateProcess\n"); @@ -1677,7 +1677,7 @@ static void test_ProcessNameA(void) /* this is a difference between the ascii and the unicode version * the unicode version crashes when the size is big enough to hold the result - * ascii version throughs an error + * ascii version through an error */ size = 1024; expect_eq_d(FALSE, pQueryFullProcessImageNameA(GetCurrentProcess(), 0, NULL, &size)); diff --git a/dlls/mapi32/tests/prop.c b/dlls/mapi32/tests/prop.c index 15d6d98e4b5..fb6b7bebb52 100644 --- a/dlls/mapi32/tests/prop.c +++ b/dlls/mapi32/tests/prop.c @@ -690,11 +690,11 @@ static void test_PpropFindProp(void) pRet = pPpropFindProp(&pvProp, 1u, ptTypes[i]); ok(pRet == &pvProp, - "PpropFindProp[%d]: Didn't find existing propery\n", + "PpropFindProp[%d]: Didn't find existing property\n", ptTypes[i]); pRet = pPpropFindProp(&pvProp, 1u, i ? ptTypes[i-1] : ptTypes[i+1]); - ok(pRet == NULL, "PpropFindProp[%d]: Found nonexistent propery\n", + ok(pRet == NULL, "PpropFindProp[%d]: Found nonexistent property\n", ptTypes[i]); } @@ -929,20 +929,20 @@ static void test_LpValFindProp(void) pRet = pLpValFindProp(PROP_TAG(ptTypes[i], 1u), 1u, &pvProp); ok(pRet == &pvProp, - "LpValFindProp[%d]: Didn't find existing propery id/type\n", + "LpValFindProp[%d]: Didn't find existing property id/type\n", ptTypes[i]); pRet = pLpValFindProp(PROP_TAG(ptTypes[i], 0u), 1u, &pvProp); - ok(pRet == NULL, "LpValFindProp[%d]: Found nonexistent propery id\n", + ok(pRet == NULL, "LpValFindProp[%d]: Found nonexistent property id\n", ptTypes[i]); pRet = pLpValFindProp(PROP_TAG(PT_NULL, 0u), 1u, &pvProp); - ok(pRet == NULL, "LpValFindProp[%d]: Found nonexistent propery id/type\n", + ok(pRet == NULL, "LpValFindProp[%d]: Found nonexistent property id/type\n", ptTypes[i]); pRet = pLpValFindProp(PROP_TAG(PT_NULL, 1u), 1u, &pvProp); ok(pRet == &pvProp, - "LpValFindProp[%d]: Didn't find existing propery id\n", + "LpValFindProp[%d]: Didn't find existing property id\n", ptTypes[i]); } } diff --git a/dlls/mapi32/tests/util.c b/dlls/mapi32/tests/util.c index 0edac07aee6..351106ec2bb 100644 --- a/dlls/mapi32/tests/util.c +++ b/dlls/mapi32/tests/util.c @@ -147,7 +147,7 @@ static void test_UFromSz(void) ok(pUFromSz("105679") == 105679u, "UFromSz: expected 105679, got %d\n", pUFromSz("105679")); - ok(pUFromSz(" 4") == 0, "UFromSz: exected 0. got %d\n", + ok(pUFromSz(" 4") == 0, "UFromSz: expected 0. got %d\n", pUFromSz(" 4")); } @@ -162,7 +162,7 @@ static void test_UlFromSzHex(void) ok(pUlFromSzHex("fF") == 0xffu, "UlFromSzHex: expected 0xff, got 0x%x\n", pUlFromSzHex("fF")); - ok(pUlFromSzHex(" c") == 0, "UlFromSzHex: exected 0x0. got 0x%x\n", + ok(pUlFromSzHex(" c") == 0, "UlFromSzHex: expected 0x0. got 0x%x\n", pUlFromSzHex(" c")); } diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c index 65e02664405..651d45a436a 100644 --- a/dlls/mlang/tests/mlang.c +++ b/dlls/mlang/tests/mlang.c @@ -1223,7 +1223,7 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2) } - /* SUBLANG_NEUTRAL only allowed for english, arabic, chinese */ + /* SUBLANG_NEUTRAL only allowed for English, Arabic, Chinese */ ret = IMultiLanguage2_GetRfc1766Info(iML2, MAKELANGID(LANG_GERMAN, SUBLANG_NEUTRAL), LANG_ENGLISH, prfc); ok(ret == E_FAIL, "got 0x%x (expected E_FAIL)\n", ret); diff --git a/dlls/mmdevapi/tests/mmdevenum.c b/dlls/mmdevapi/tests/mmdevenum.c index ff70177f80a..82658d1f35b 100644 --- a/dlls/mmdevapi/tests/mmdevenum.c +++ b/dlls/mmdevapi/tests/mmdevenum.c @@ -30,7 +30,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); -/* Some of the QueryInterface tests are really just to check if I got the IID's right :) */ +/* Some of the QueryInterface tests are really just to check if I got the IIDs right :) */ /* IMMDeviceCollection appears to have no QueryInterface method and instead forwards to mme */ static void test_collection(IMMDeviceEnumerator *mme, IMMDeviceCollection *col) diff --git a/dlls/mscoree/tests/mscoree.c b/dlls/mscoree/tests/mscoree.c index 894e9de4f6a..56351c371d4 100644 --- a/dlls/mscoree/tests/mscoree.c +++ b/dlls/mscoree/tests/mscoree.c @@ -138,7 +138,7 @@ static void test_versioninfo(void) hr = pGetRequestedRuntimeInfo( NULL, v2_0, NULL, 0, 0, NULL, MAX_PATH, &path_len, version, MAX_PATH, &size); ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); ok(!winetest_strcmpW(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0)); - /* With NULL-pointer for bufferlength, the buffer itsself still gets filled with correct string */ + /* With NULL-pointer for bufferlength, the buffer itself still gets filled with correct string */ memset(version, 0, sizeof(version)); hr = pGetRequestedRuntimeInfo( NULL, v2_0, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL); ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr); diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c index 312d3b21009..3262c6bccbf 100644 --- a/dlls/msctf/tests/inputprocessor.c +++ b/dlls/msctf/tests/inputprocessor.c @@ -558,7 +558,7 @@ ITfContext *pic) ITfContext *test; hr = ITfContext_GetDocumentMgr(pic,&docmgr); - ok(SUCCEEDED(hr),"GetDocumenMgr failed\n"); + ok(SUCCEEDED(hr),"GetDocumentMgr failed\n"); test = (ITfContext*)0xdeadbeef; ITfDocumentMgr_Release(docmgr); hr = ITfDocumentMgr_GetTop(docmgr,&test); @@ -579,7 +579,7 @@ ITfContext *pic) ITfContext *test; hr = ITfContext_GetDocumentMgr(pic,&docmgr); - ok(SUCCEEDED(hr),"GetDocumenMgr failed\n"); + ok(SUCCEEDED(hr),"GetDocumentMgr failed\n"); ITfDocumentMgr_Release(docmgr); test = (ITfContext*)0xdeadbeef; hr = ITfDocumentMgr_GetTop(docmgr,&test); @@ -1025,7 +1025,7 @@ static void test_ThreadMgrAdviseSinks(void) ok(SUCCEEDED(hr),"Failed to Advise Sink\n"); ok(tmSinkCookie!=0,"Failed to get sink cookie\n"); - /* Advising the sink adds a ref, Relesing here lets the object be deleted + /* Advising the sink adds a ref, Releasing here lets the object be deleted when unadvised */ tmSinkRefCount = 2; IUnknown_Release(sink); @@ -1866,7 +1866,7 @@ static void test_TStoApplicationText(void) } hrSession = 0xfeedface; - /* Test no premissions flags */ + /* Test no permissions flags */ hr = ITfContext_RequestEditSession(cxt, tid, es, TF_ES_SYNC, &hrSession); ok(hr == E_INVALIDARG,"RequestEditSession should have failed with %x not %x\n",E_INVALIDARG,hr); ok(hrSession == E_FAIL,"hrSession should be %x not %x\n",E_FAIL,hrSession); diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c index 5f3a90abb5a..5034f1b4411 100644 --- a/dlls/msctf/threadmgr.c +++ b/dlls/msctf/threadmgr.c @@ -1470,5 +1470,5 @@ void ThreadMgr_OnDocumentMgrDestruction(ITfThreadMgr *tm, ITfDocumentMgr *mgr) return; } } - FIXME("ITfDocumenMgr %p not found in this thread\n",mgr); + FIXME("ITfDocumentMgr %p not found in this thread\n",mgr); } diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index b2938c07828..5d1d3afd645 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -502,7 +502,7 @@ static HRESULT WINAPI HTMLElement_get_style(IHTMLElement *iface, IHTMLStyle **p) nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMElementCSSInlineStyle, (void**)&nselemstyle); if(NS_FAILED(nsres)) { - ERR("Coud not get nsIDOMCSSStyleDeclaration interface: %08x\n", nsres); + ERR("Could not get nsIDOMCSSStyleDeclaration interface: %08x\n", nsres); return E_FAIL; } diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 7581337d611..1ded79662d8 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -107,7 +107,7 @@ nsIDOMWindow *get_nsdoc_window(nsIDOMDocument *nsdoc) nsres = nsIDOMAbstractView_QueryInterface(nsview, &IID_nsIDOMWindow, (void**)&nswindow); nsIDOMAbstractView_Release(nsview); if(NS_FAILED(nsres)) { - ERR("Coult not get nsIDOMWindow iface: %08x\n", nsres); + ERR("Could not get nsIDOMWindow iface: %08x\n", nsres); return NULL; } diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index a7998d544f8..b0e3f84fece 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5720,7 +5720,7 @@ static IHTMLDocument2 *create_docfrag(IHTMLDocument2 *doc) HRESULT hres; hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Coult not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); hres = IHTMLDocument3_createDocumentFragment(doc3, &frag); IHTMLDocument3_Release(doc3); diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 3309a73db46..7791b737baf 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -2086,9 +2086,9 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum if(activeobj) { IOleInPlaceActiveObject_GetWindow(activeobj, &hwnd); ok(hres == S_OK, "GetWindow failed: %08x\n", hres); - ok(hwnd == NULL, "hwnd=%p, expeted NULL\n", hwnd); + ok(hwnd == NULL, "hwnd=%p, expected NULL\n", hwnd); } - + if(call_UIActivate == CallUIActivate_ActivateMe) { SET_EXPECT(CanInPlaceActivate); SET_EXPECT(GetWindowContext); diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c index 93183d009a1..f0fd1dd6892 100644 --- a/dlls/mshtml/tests/script.c +++ b/dlls/mshtml/tests/script.c @@ -2622,7 +2622,7 @@ static BOOL register_script_engine(void) hres = CoRegisterClassObject(&CLSID_TestScript, (IUnknown *)&script_cf, CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, ®id); - ok(hres == S_OK, "Could not register screipt engine: %08x\n", hres); + ok(hres == S_OK, "Could not register script engine: %08x\n", hres); return TRUE; } diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index 68e7205d38a..fff068f0e06 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -2420,7 +2420,7 @@ static void test_Installer_InstallProduct(void) /* Avoid an interactive dialog in case of insufficient privileges. */ hr = Installer_UILevelPut(INSTALLUILEVEL_NONE); - ok(hr == S_OK, "Expected UILevel propery put invoke to return S_OK, got 0x%08x\n", hr); + ok(hr == S_OK, "Expected UILevel property put invoke to return S_OK, got 0x%08x\n", hr); /* Installer::InstallProduct */ hr = Installer_InstallProduct(szMsifile, NULL); diff --git a/dlls/msi/tests/format.c b/dlls/msi/tests/format.c index facd298c0a2..3ecfc66ad25 100644 --- a/dlls/msi/tests/format.c +++ b/dlls/msi/tests/format.c @@ -2519,16 +2519,16 @@ static void test_formatrecord_tables(void) ok( r == ERROR_SUCCESS, "cannot create CustomAction table: %d\n", r); r = add_custom_action_entry( hdb, "'MyCustom', 51, 'prop', '[!temporal_file]'" ); - ok( r == ERROR_SUCCESS, "cannt add custom action: %d\n", r); + ok( r == ERROR_SUCCESS, "cannot add custom action: %d\n", r); r = add_custom_action_entry( hdb, "'EscapeIt1', 51, 'prop', '[\\[]Bracket Text[\\]]'" ); - ok( r == ERROR_SUCCESS, "cannt add custom action: %d\n", r); + ok( r == ERROR_SUCCESS, "cannot add custom action: %d\n", r); r = add_custom_action_entry( hdb, "'EscapeIt2', 51, 'prop', '[\\xabcd]'" ); - ok( r == ERROR_SUCCESS, "cannt add custom action: %d\n", r); + ok( r == ERROR_SUCCESS, "cannot add custom action: %d\n", r); r = add_custom_action_entry( hdb, "'EscapeIt3', 51, 'prop', '[abcd\\xefgh]'" ); - ok( r == ERROR_SUCCESS, "cannt add custom action: %d\n", r); + ok( r == ERROR_SUCCESS, "cannot add custom action: %d\n", r); r = package_from_db( hdb, &hpkg ); if (r == ERROR_INSTALL_PACKAGE_REJECTED) diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c index e2bf5780ce8..09a88c83d05 100644 --- a/dlls/msvcrt/tests/file.c +++ b/dlls/msvcrt/tests/file.c @@ -1310,7 +1310,7 @@ static void test_get_osfhandle(void) WriteFile(handle, "bar", 3, &bytes_written, NULL); _close(fd); fd = _open(fname, _O_RDONLY, 0); - ok(fd != -1, "Coudn't open '%s' after _get_osfhanle()\n", fname); + ok(fd != -1, "Couldn't open '%s' after _get_osfhandle()\n", fname); _close(fd); _unlink(fname); diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index a646501613c..754c083fc0d 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -3058,17 +3058,17 @@ todo_wine if (list) { r = IXMLDOMNodeList_get_item(list, 0, NULL); - ok(r == E_INVALIDARG, "Exected E_INVALIDARG got %08x\n", r); + ok(r == E_INVALIDARG, "Expected E_INVALIDARG got %08x\n", r); r = IXMLDOMNodeList_get_length(list, NULL); - ok(r == E_INVALIDARG, "Exected E_INVALIDARG got %08x\n", r); + ok(r == E_INVALIDARG, "Expected E_INVALIDARG got %08x\n", r); r = IXMLDOMNodeList_get_length( list, &count ); ok( r == S_OK, "get_length returns %08x\n", r ); ok( count == 4, "get_length got %d\n", count ); r = IXMLDOMNodeList_nextNode(list, NULL); - ok(r == E_INVALIDARG, "Exected E_INVALIDARG got %08x\n", r); + ok(r == E_INVALIDARG, "Expected E_INVALIDARG got %08x\n", r); r = IXMLDOMNodeList_nextNode( list, &node ); ok( r == S_OK, "nextNode returned wrong code\n"); @@ -3091,7 +3091,7 @@ todo_wine ok( V_BSTR(&var) == NULL, "variant value wasn't null\n"); r = IXMLDOMNode_hasChildNodes( node, NULL ); - ok( r == E_INVALIDARG, "hasChildNoes bad return\n"); + ok( r == E_INVALIDARG, "hasChildNodes bad return\n"); EXPECT_CHILDREN(node); @@ -4691,7 +4691,7 @@ static void test_XMLHTTP(void) hr = SafeArrayAccessData(V_ARRAY(&varbody), &ptr); EXPECT_HR(hr, S_OK); - ok(memcmp(ptr, xmltestbodyA, sizeof(xmltestbodyA)-1) == 0, "got wrond body data\n"); + ok(memcmp(ptr, xmltestbodyA, sizeof(xmltestbodyA)-1) == 0, "got wrong body data\n"); SafeArrayUnaccessData(V_ARRAY(&varbody)); VariantClear(&varbody); @@ -6895,7 +6895,7 @@ static void test_save(void) hr = IXMLDOMDocument_get_xml(doc2, &sNew); EXPECT_HR(hr, S_OK); - ok( !lstrcmpW( sOrig, sNew ), "New document is not the same as origial\n"); + ok( !lstrcmpW( sOrig, sNew ), "New document is not the same as original\n"); SysFreeString(sOrig); SysFreeString(sNew); diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c index 14c5e5a9160..4e021c6209a 100644 --- a/dlls/msxml3/tests/saxreader.c +++ b/dlls/msxml3/tests/saxreader.c @@ -1050,7 +1050,7 @@ static void test_mxwriter_flush(void) ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); EXPECT_REF(stream, 1); - /* detach whe nothing was attached */ + /* detach when nothing was attached */ V_VT(&dest) = VT_EMPTY; hr = IMXWriter_put_output(writer, dest); ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); @@ -1145,7 +1145,7 @@ static void test_mxwriter_startenddocument(void) /* now try another startDocument */ hr = ISAXContentHandler_startDocument(content); ok(hr == S_OK, "got %08x\n", hr); - /* and get duplcated prolog */ + /* and get duplicated prolog */ V_VT(&dest) = VT_EMPTY; hr = IMXWriter_get_output(writer, &dest); ok(hr == S_OK, "got %08x\n", hr); diff --git a/dlls/ntdll/tests/atom.c b/dlls/ntdll/tests/atom.c index 149078f34bf..0f185657cfe 100644 --- a/dlls/ntdll/tests/atom.c +++ b/dlls/ntdll/tests/atom.c @@ -110,7 +110,7 @@ static DWORD WINAPI RtlAtomTestThread(LPVOID Table) Len = 64; res = pRtlQueryAtomInAtomTable(AtomTable, Atom, &RefCount, &PinCount, Name, &Len); - ok(!res, "Failed with longenough buffer, retval: %x\n", res); + ok(!res, "Failed with long enough buffer, retval: %x\n", res); ok(RefCount == 1, "Refcount was not 1 but %x\n", RefCount); ok(PinCount == 1, "Pincount was not 1 but %x\n", PinCount); ok(!lstrcmpW(Name, testAtom2), "We found wrong atom!!\n"); diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index 5d3f8c1f124..d2d15af0223 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -717,7 +717,7 @@ static void test_exceptions(void) ctx.Dr7 = 3; ctx.ContextFlags = CONTEXT_DEBUG_REGISTERS; res = pNtSetContextThread( GetCurrentThread(), &ctx); - ok( res == STATUS_SUCCESS, "NtSetContextThread faild with %x\n", res); + ok( res == STATUS_SUCCESS, "NtSetContextThread failed with %x\n", res); got_exception = 0; run_exception_test(bpx_handler, NULL, dummy_code, sizeof(dummy_code), 0); @@ -796,7 +796,7 @@ static void test_debugger(void) if (counter > 100) { - ok(FALSE, "got way too many exceptions, probaby caught in a infinite loop, terminating child\n"); + ok(FALSE, "got way too many exceptions, probably caught in a infinite loop, terminating child\n"); pNtTerminateProcess(pi.hProcess, 1); } else if (counter >= 2) /* skip startup breakpoint */ diff --git a/dlls/ntdll/tests/large_int.c b/dlls/ntdll/tests/large_int.c index 69de5b78947..f13ae882d05 100644 --- a/dlls/ntdll/tests/large_int.c +++ b/dlls/ntdll/tests/large_int.c @@ -326,7 +326,7 @@ static void one_RtlInt64ToUnicodeString_test(int test_num, const largeint2str_t /* the string would have (which can be larger than the MaximumLength). */ /* To allow all this in the tests we do the following: */ if (expected_unicode_string.Length >= 64) { - /* The value is too large to convert only triggerd when testing native */ + /* The value is too large to convert only triggered when testing native */ /* Length is not filled with the expected string length (garbage?) */ expected_unicode_string.Length = unicode_string.Length; } /* if */ diff --git a/dlls/ntdll/tests/pipe.c b/dlls/ntdll/tests/pipe.c index cad92a72494..8f7bd8fe51f 100644 --- a/dlls/ntdll/tests/pipe.c +++ b/dlls/ntdll/tests/pipe.c @@ -230,7 +230,7 @@ static void CALLBACK userapc(ULONG_PTR dwParam) userapc_called = TRUE; } -static BOOL open_succeded; +static BOOL open_succeeded; static DWORD WINAPI thread(PVOID main_thread) { HANDLE h; @@ -248,11 +248,11 @@ static DWORD WINAPI thread(PVOID main_thread) h = CreateFileW(testpipe, GENERIC_WRITE | GENERIC_READ, 0, 0, OPEN_EXISTING, 0, 0); if (h != INVALID_HANDLE_VALUE) { - open_succeded = TRUE; + open_succeeded = TRUE; Sleep(100); CloseHandle(h); } else - open_succeded = FALSE; + open_succeeded = FALSE; return 0; } @@ -303,7 +303,7 @@ static void test_alertable(void) SleepEx(0, TRUE); /* get rid of the userapc, if NtFsControlFile failed */ - ok(open_succeded, "couldn't open client side pipe\n"); + ok(open_succeeded, "couldn't open client side pipe\n"); CloseHandle(hThread); DisconnectNamedPipe(hPipe); @@ -315,7 +315,7 @@ static void test_alertable(void) res = listen_pipe(hPipe, hEvent, &iosb, TRUE); todo_wine ok(!res, "NtFsControlFile returned %x\n", res); - ok(open_succeded, "couldn't open client side pipe\n"); + ok(open_succeeded, "couldn't open client side pipe\n"); ok(!U(iosb).Status, "Wrong iostatus %x\n", U(iosb).Status); todo_wine ok(WaitForSingleObject(hEvent, 0) == 0, "hEvent not signaled\n"); @@ -350,7 +350,7 @@ static void test_nonalertable(void) res = listen_pipe(hPipe, hEvent, &iosb, TRUE); todo_wine ok(!res, "NtFsControlFile returned %x\n", res); - ok(open_succeded, "couldn't open client side pipe\n"); + ok(open_succeeded, "couldn't open client side pipe\n"); todo_wine ok(!U(iosb).Status, "Wrong iostatus %x\n", U(iosb).Status); todo_wine ok(WaitForSingleObject(hEvent, 0) == 0, "hEvent not signaled\n"); diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c index 78df7efc381..a5f08064c4c 100644 --- a/dlls/ntdll/tests/rtlstr.c +++ b/dlls/ntdll/tests/rtlstr.c @@ -749,7 +749,7 @@ static const ustr2astr_t ustr2astr[] = { { 8, 7, 12, "------------", 12, 12, 12, "abcdef", FALSE, 6, 7, 7, "abcdef", STATUS_SUCCESS}, { 8, 7, 12, "------------", 0, 12, 12, NULL, FALSE, 0, 7, 0, "", STATUS_SUCCESS}, #if 0 - /* crashes on japanese and chinese XP */ + /* crashes on Japanese and Chinese XP */ { 0, 0, 12, NULL, 10, 10, 12, NULL, FALSE, 5, 0, 0, NULL, STATUS_BUFFER_OVERFLOW}, #endif }; @@ -1613,7 +1613,7 @@ static void one_RtlIntegerToUnicodeString_test(int test_num, const int2str_t *in /* the string would have (which can be larger than the MaximumLength). */ /* To allow all this in the tests we do the following: */ if (expected_unicode_string.Length > 32 && unicode_string.Length == 0) { - /* The value is too large to convert only triggerd when testing native */ + /* The value is too large to convert only triggered when testing native */ expected_unicode_string.Length = 0; } } else { @@ -1754,7 +1754,7 @@ static void test_RtlIsTextUnicode(void) /* build byte reversed unicode string with no control chars */ be_unicode_no_controls = HeapAlloc(GetProcessHeap(), 0, sizeof(unicode) + sizeof(WCHAR)); - ok(be_unicode_no_controls != NULL, "Expeced HeapAlloc to succeed.\n"); + ok(be_unicode_no_controls != NULL, "Expected HeapAlloc to succeed.\n"); be_unicode_no_controls[0] = 0xfffe; for (i = 0; i < sizeof(unicode_no_controls)/sizeof(unicode_no_controls[0]); i++) be_unicode_no_controls[i + 1] = (unicode_no_controls[i] >> 8) | ((unicode_no_controls[i] & 0xff) << 8); diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index 69103b563f0..233ebcc48f8 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -875,7 +875,7 @@ static void test_storage_refcount(void) STATSTG statstg; r = IStorage_Stat( stg, &statstg, STATFLAG_NONAME ); - ok(r == S_OK, "Stat should have succeded instead of returning 0x%08x\n", r); + ok(r == S_OK, "Stat should have succeeded instead of returning 0x%08x\n", r); ok(statstg.type == STGTY_STORAGE, "Statstg type should have been STGTY_STORAGE instead of %d\n", statstg.type); ok(U(statstg.cbSize).LowPart == 0, "Statstg cbSize.LowPart should have been 0 instead of %d\n", U(statstg.cbSize).LowPart); ok(U(statstg.cbSize).HighPart == 0, "Statstg cbSize.HighPart should have been 0 instead of %d\n", U(statstg.cbSize).HighPart); @@ -890,7 +890,7 @@ static void test_storage_refcount(void) ok(r == S_OK, "CreateStorage should have succeeded instead of returning 0x%08x\n", r); r = IStorage_Stat( stg2, &statstg, STATFLAG_DEFAULT ); - ok(r == S_OK, "Stat should have succeded instead of returning 0x%08x\n", r); + ok(r == S_OK, "Stat should have succeeded instead of returning 0x%08x\n", r); ok(!memcmp(statstg.pwcsName, stgname, sizeof(stgname)), "Statstg pwcsName should have been the name the storage was created with\n"); ok(statstg.type == STGTY_STORAGE, "Statstg type should have been STGTY_STORAGE instead of %d\n", statstg.type); @@ -1555,7 +1555,7 @@ static void test_parent_free(void) if (r == S_OK) { r = IStream_Write(stm, "this should fail\n", 17, NULL); - ok(r==STG_E_REVERTED, "IStream->Write sould fail, hr=%x\n", r); + ok(r==STG_E_REVERTED, "IStream->Write should fail, hr=%x\n", r); IStream_Release(stm); diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index e9720bb5cf9..5a0ac2585d7 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -71,7 +71,7 @@ static void test_ifont_size(LONG lo_size, LONG hi_size, DWORD rtnval; fd.cbSizeofstruct = sizeof(FONTDESC); - fd.lpstrName = arial_font; /* using scaleable instead of bitmap font reduces errors due to font realization */ + fd.lpstrName = arial_font; /* using scalable instead of bitmap font reduces errors due to font realization */ S(fd.cySize).Lo = lo_size; S(fd.cySize).Hi = hi_size; fd.sWeight = 0; @@ -100,7 +100,7 @@ static void test_ifont_size(LONG lo_size, LONG hi_size, ok(hres == S_OK,"%s: IFont_get_size returns 0x%08x instead of S_OK.\n", test_name, hres); - /* Check returned size - allow for errors due to rouding & font realization. */ + /* Check returned size - allow for errors due to rounding & font realization. */ ok((abs(S(psize).Lo - lo_size) < 10000) && S(psize).Hi == hi_size, "%s: IFont_get_Size: Lo=%d, Hi=%d; expected Lo=%d, Hi=%d.\n", test_name, S(psize).Lo, S(psize).Hi, lo_size, hi_size); @@ -112,7 +112,7 @@ static void test_ifont_size(LONG lo_size, LONG hi_size, rtnval = GetObject (hfont, sizeof(LOGFONT), &lf); ok(rtnval > 0, "GetObject(hfont) failed\n"); - /* Since font scaling may encounter rouding errors, allow 1 pixel deviation. */ + /* Since font scaling may encounter rounding errors, allow 1 pixel deviation. */ ok(abs(lf.lfHeight - hfont_height) <= 1, "%s: hFont has lf.lfHeight=%d, expected %d.\n", test_name, lf.lfHeight, hfont_height); diff --git a/dlls/oleaut32/tests/safearray.c b/dlls/oleaut32/tests/safearray.c index 411b4bc3b10..c484bb8b553 100644 --- a/dlls/oleaut32/tests/safearray.c +++ b/dlls/oleaut32/tests/safearray.c @@ -333,7 +333,7 @@ static void test_safearray(void) ok(hres == S_OK || hres == E_OUTOFMEMORY, "SAR to a 0 elements dimension failed with hres %x\n", hres); hres = SafeArrayDestroy(a); - ok(hres == S_OK,"SAD of 0 dim array faild with hres %x\n", hres); + ok(hres == S_OK,"SAD of 0 dim array failed with hres %x\n", hres); SafeArrayAllocDescriptor(2, &a); a->rgsabound[0].cElements = 2; @@ -370,7 +370,7 @@ static void test_safearray(void) ok(*(WORD *)ptr1 == 0x55aa, "Data not preserved when resizing array\n"); hres = SafeArrayDestroy(a); - ok(hres == S_OK,"SAD faild with hres %x\n", hres); + ok(hres == S_OK,"SAD failed with hres %x\n", hres); bounds[0].cElements = 0; bounds[0].lLbound = 1; bounds[1].cElements = 2; bounds[1].lLbound = 23; @@ -378,14 +378,14 @@ static void test_safearray(void) ok(a != NULL,"SAC(VT_INT32,2,...) with 0 element dim failed.\n"); hres = SafeArrayDestroy(a); - ok(hres == S_OK,"SAD faild with hres %x\n", hres); + ok(hres == S_OK,"SAD failed with hres %x\n", hres); bounds[0].cElements = 1; bounds[0].lLbound = 1; bounds[1].cElements = 0; bounds[1].lLbound = 23; a = SafeArrayCreate(VT_I4,2,bounds); ok(a != NULL,"SAC(VT_INT32,2,...) with 0 element dim failed.\n"); hres = SafeArrayDestroy(a); - ok(hres == S_OK,"SAD faild with hres %x\n", hres); + ok(hres == S_OK,"SAD failed with hres %x\n", hres); bounds[0].cElements = 42; bounds[0].lLbound = 1; bounds[1].cElements = 2; bounds[1].lLbound = 23; @@ -470,7 +470,7 @@ static void test_safearray(void) ok(S_OK == hres, "SAUAD failed with 0x%x\n", hres); hres = SafeArrayDestroy(a); - ok(hres == S_OK,"SAD faild with hres %x\n", hres); + ok(hres == S_OK,"SAD failed with hres %x\n", hres); for (i=0;i> 32), (DWORD)progress.BytesTotal); ok(progress.BytesTransferred == 0, "Got incorrect number of transferred bytes: %x%08x\n", (DWORD)(progress.BytesTransferred >> 32), (DWORD)progress.BytesTransferred); - ok(progress.Completed == FALSE, "Got incorret completion status\n"); + ok(progress.Completed == FALSE, "Got incorrect completion status\n"); } typedef void (*test_t)(void); diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c index 83e387ba52f..bdc1579713f 100644 --- a/dlls/rpcrt4/tests/rpc.c +++ b/dlls/rpcrt4/tests/rpc.c @@ -846,7 +846,7 @@ static void test_RpcBindingFree(void) status = RpcBindingFree(&binding); ok(status == RPC_S_INVALID_BINDING, - "RpcBindingFree should have retured RPC_S_INVALID_BINDING instead of %d\n", + "RpcBindingFree should have returned RPC_S_INVALID_BINDING instead of %d\n", status); } diff --git a/dlls/shdocvw/tests/shdocvw.c b/dlls/shdocvw/tests/shdocvw.c index e7c904ba14e..ad89c4ae4c9 100644 --- a/dlls/shdocvw/tests/shdocvw.c +++ b/dlls/shdocvw/tests/shdocvw.c @@ -133,7 +133,7 @@ static void test_URLSubRegQueryA(void) "got 0x%x and %d (expected S_OK and %d)\n", hr, used, len - 2); } - /* only space for the terminating 0: function still succeded */ + /* only space for the terminating 0: function still succeeded */ memset(buffer, '#', sizeof(buffer)-1); buffer[sizeof(buffer)-1] = '\0'; hr = pURLSubRegQueryA(regpath_iemain, start_page, REG_SZ, buffer, 1, -1); diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c index 0f3ea17a554..4ad668273f5 100644 --- a/dlls/shell32/tests/ebrowser.c +++ b/dlls/shell32/tests/ebrowser.c @@ -32,7 +32,7 @@ #include "mshtml.h" /********************************************************************** - * Some IID's for test_SetSite. + * Some IIDs for test_SetSite. */ DEFINE_GUID(IID_IBrowserSettings, 0xDD1E21CC, 0xE2C7, 0x402C, 0xBF,0x05, 0x10,0x32,0x8D,0x3F,0x6B,0xAD); DEFINE_GUID(IID_IShellBrowserService, 0xDFBC7E30, 0xF9E5, 0x455F, 0x88,0xF8, 0xFA,0x98,0xC1,0xE4,0x94,0xCA); diff --git a/dlls/shell32/tests/shell32_test.h b/dlls/shell32/tests/shell32_test.h index 64a2be1ef62..42a74fb2d5f 100644 --- a/dlls/shell32/tests/shell32_test.h +++ b/dlls/shell32/tests/shell32_test.h @@ -1,7 +1,7 @@ /* * Unit test suite for shell32 functions * - * Copyright 2005 Francois Gougett for CodeWeavers + * Copyright 2005 Francois Gouget for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index b2d778ca173..f1e2a3ed18e 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -1716,11 +1716,11 @@ static void test_copy(void) { ok(DeleteFileA("threedir\\two.txt"), "Expected file to exist\n"); ok(!DeleteFileA("fourdir"), "Expected file to not exist\n"); - ok(!RemoveDirectoryA("fourdir"), "Expected dit to not exist\n"); + ok(!RemoveDirectoryA("fourdir"), "Expected dir to not exist\n"); } ok(RemoveDirectoryA("threedir"), "Expected dir to exist\n"); ok(!DeleteFileA("five"), "Expected file to not exist\n"); - ok(!RemoveDirectoryA("five"), "Expected dit to not exist\n"); + ok(!RemoveDirectoryA("five"), "Expected dir to not exist\n"); createTestFile("aa.txt"); createTestFile("ab.txt"); diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index 6ffec22e6e8..c85848b6233 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -1778,7 +1778,7 @@ static void test_ITEMIDLIST_format(void) { /* WinXP stores a derived 8.3 dos name (LONGER~1.8_3) here. We probably * can't implement this correctly, since unix filesystems don't support * this nasty short/long filename stuff. So we'll probably stay with our - * current habbit of storing the long filename here, which seems to work + * current habit of storing the long filename here, which seems to work * just fine. */ todo_wine ok(pidlFile->mkid.abID[18] == '~' || diff --git a/dlls/shlwapi/tests/clsid.c b/dlls/shlwapi/tests/clsid.c index ed37c795a40..99bc18a808a 100644 --- a/dlls/shlwapi/tests/clsid.c +++ b/dlls/shlwapi/tests/clsid.c @@ -128,7 +128,7 @@ static void test_ClassIDs(void) i++; } - /* Test endianess */ + /* Test endianness */ dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 256); ok(dwLen == (is_vista ? S_OK : 39), "wrong size %u for IID_Endianess\n", dwLen); diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c index e4dc20094d4..ecb0c87382e 100644 --- a/dlls/urlmon/tests/misc.c +++ b/dlls/urlmon/tests/misc.c @@ -769,7 +769,7 @@ static void register_protocols(void) hres = CoGetClassObject(&CLSID_AboutProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory, (void**)&factory); - ok(hres == S_OK, "Coud not get AboutProtocol factory: %08x\n", hres); + ok(hres == S_OK, "Could not get AboutProtocol factory: %08x\n", hres); if(FAILED(hres)) return; diff --git a/dlls/urlmon/tests/sec_mgr.c b/dlls/urlmon/tests/sec_mgr.c index c64dfe40f01..2ba9f0c6cee 100644 --- a/dlls/urlmon/tests/sec_mgr.c +++ b/dlls/urlmon/tests/sec_mgr.c @@ -1135,7 +1135,7 @@ static void test_SetZoneAttributes(void) /* The key for the zone must be present, when calling SetZoneAttributes */ myRegDeleteTreeA(HKEY_CURRENT_USER, regpath); - /* E_FAIL is returned from IE6 here, which is resonable. + /* E_FAIL is returned from IE6 here, which is reasonable. All newer IE return S_OK without saving the zone attributes to the registry. This is a Windows bug, but we have to accept that as standard */ hr = IInternetZoneManager_SetZoneAttributes(zonemgr, URLZONE_CUSTOM, pZA); diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c index 2fe67c221ec..d08dd5b4be6 100644 --- a/dlls/urlmon/tests/uri.c +++ b/dlls/urlmon/tests/uri.c @@ -842,7 +842,7 @@ static const uri_properties uri_tests[] = { {URLZONE_INVALID,E_NOTIMPL,FALSE} } }, - /* Unreserved, percent encoded characters aren't decoded in the userinfo becuase the scheme + /* Unreserved, percent encoded characters aren't decoded in the userinfo because the scheme * isn't known. */ { "zip://%2E:%52%53ord@winehq.org/", 0, S_OK, FALSE, @@ -1436,7 +1436,7 @@ static const uri_properties uri_tests[] = { {URLZONE_INVALID,E_NOTIMPL,FALSE} } }, - /* Hostname get's lower cased for known scheme types. */ + /* Hostname gets lower-cased for known scheme types. */ { "http://WWW.GOOGLE.com/", 0, S_OK, FALSE, { {"http://www.google.com/",S_OK,FALSE}, diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c index 5ff49efc02a..6067f08b88f 100644 --- a/dlls/urlmon/tests/url.c +++ b/dlls/urlmon/tests/url.c @@ -2085,9 +2085,9 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva ok(GetCurrentThreadId() == thread_id, "wrong thread %d\n", GetCurrentThreadId()); if(test_protocol == HTTP_TEST || test_protocol == HTTPS_TEST) - ok(!fFullyAvailable, "fFulyAvailable = %x\n", fFullyAvailable); + ok(!fFullyAvailable, "fFullyAvailable = %x\n", fFullyAvailable); else - ok(fFullyAvailable, "fFulyAvailable = %x\n", fFullyAvailable); + ok(fFullyAvailable, "fFullyAvailable = %x\n", fFullyAvailable); ok(pimkName != NULL, "pimkName == NULL\n"); ok(pibc != NULL, "pibc == NULL\n"); ok(grfMode == 0x12, "grfMode = %x\n", grfMode); @@ -3606,7 +3606,7 @@ static void test_StdURLMoniker(void) IUri *uri; hres = IMoniker_QueryInterface(mon, &IID_IUriContainer, (void**)&uri_container); - ok(hres == S_OK, "Coud not get IUriMoniker iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IUriMoniker iface: %08x\n", hres); uri = (void*)0xdeadbeef; diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index 158ff3f075a..266f629aa23 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -81,7 +81,7 @@ static void test_ClipboardOwner(void) SetLastError(0xdeadbeef); ret = OpenClipboard(hWnd2); ok(!ret && (GetLastError() == 0xdeadbeef || GetLastError() == ERROR_ACCESS_DENIED), - "OpenClipboard should fail without setting last error valuei, or with ERROR_ACCESS_DENIED, got error %d\n", GetLastError()); + "OpenClipboard should fail without setting last error value, or with ERROR_ACCESS_DENIED, got error %d\n", GetLastError()); ret = CloseClipboard(); ok( ret, "CloseClipboard error %d\n", GetLastError()); diff --git a/dlls/user32/tests/cursoricon.c b/dlls/user32/tests/cursoricon.c index ae7a0557b72..ddf37ef7b53 100644 --- a/dlls/user32/tests/cursoricon.c +++ b/dlls/user32/tests/cursoricon.c @@ -1802,7 +1802,7 @@ static void test_DrawIcon(void) if(GetDeviceCaps(hdcDst, BITSPIXEL) <= 8) { - skip("Windows will distort DrawIcon colors at 8-bpp and less due to palletizing.\n"); + skip("Windows will distort DrawIcon colors at 8-bpp and less due to palettizing.\n"); goto cleanup; } @@ -1886,7 +1886,7 @@ static void test_DrawIconEx(void) if(GetDeviceCaps(hdcDst, BITSPIXEL) <= 8) { - skip("Windows will distort DrawIconEx colors at 8-bpp and less due to palletizing.\n"); + skip("Windows will distort DrawIconEx colors at 8-bpp and less due to palettizing.\n"); goto cleanup; } @@ -2035,7 +2035,7 @@ static void test_DrawState(void) if(GetDeviceCaps(hdcDst, BITSPIXEL) <= 8) { - skip("Windows will distort DrawIconEx colors at 8-bpp and less due to palletizing.\n"); + skip("Windows will distort DrawIconEx colors at 8-bpp and less due to palettizing.\n"); goto cleanup; } diff --git a/dlls/user32/tests/dce.c b/dlls/user32/tests/dce.c index f077fcb886d..4aacd64a593 100644 --- a/dlls/user32/tests/dce.c +++ b/dlls/user32/tests/dce.c @@ -223,7 +223,7 @@ static void test_dc_visrgn(void) SetRectEmpty( &rect ); GetClipBox( hdc, &rect ); ok( !(rect.left >= 10 && rect.top >= 10 && rect.right <= 20 && rect.bottom <= 20), - "clip box sould have been reset %d,%d-%d,%d\n", rect.left, rect.top, rect.right, rect.bottom ); + "clip box should have been reset %d,%d-%d,%d\n", rect.left, rect.top, rect.right, rect.bottom ); ReleaseDC( hwnd_cache, hdc ); /* window DC */ diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c index 510f3e436c9..e273de21379 100644 --- a/dlls/user32/tests/dde.c +++ b/dlls/user32/tests/dde.c @@ -1001,7 +1001,7 @@ static LRESULT WINAPI dde_msg_client_wndproc(HWND hwnd, UINT msg, WPARAM wparam, ok(data->fAckReq == 0, "Expected 0, got %d\n", data->fAckReq); ok(data->cfFormat == CF_TEXT, "Expected CF_TEXT, got %d\n", data->cfFormat); ok(!lstrcmpA((LPSTR)data->Value, "requested data\r\n"), - "Expeted 'requested data\\r\\n', got %s\n", data->Value); + "Expected 'requested data\\r\\n', got %s\n", data->Value); GlobalUnlock((HGLOBAL)lo); size = GlobalGetAtomNameA(hi, str, MAX_PATH); @@ -1761,7 +1761,7 @@ static void test_initialisation(void) item = DdeCreateStringHandleA(client_pid, "request", CP_WINANSI); - /* There is no converstation so an invalild parameter results */ + /* There is no conversation so an invalid parameter results */ res = 0xdeadbeef; DdeGetLastError(client_pid); hdata = DdeClientTransaction(NULL, 0, conversation, item, CF_TEXT, XTYP_REQUEST, default_timeout, &res); diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c index 823e19ee0be..ea7b5b0dd40 100644 --- a/dlls/user32/tests/menu.c +++ b/dlls/user32/tests/menu.c @@ -221,7 +221,7 @@ static LRESULT WINAPI menu_ownerdraw_wnd_proc(HWND hwnd, UINT msg, } if( pdis->itemData > MOD_maxid) return TRUE; - /* store the rectangl */ + /* store the rectangle */ MOD_rc[pdis->itemData] = pdis->rcItem; /* calculate average character width */ GetTextExtentPoint( pdis->hDC, chrs, 52, &sz ); @@ -3103,7 +3103,7 @@ static void test_menu_cancelmode(void) {MSG msg; while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessage(&msg);} /* test the effect of sending a WM_CANCELMODE message in the WM_INITMENULOOP * handler of the menu owner */ - /* test results is exctracted from variable g_got_enteridle. Possible values: + /* test results is extracted from variable g_got_enteridle. Possible values: * 0 : complete conformance. Sending WM_CANCELMODE cancels a menu initializing tracking * 1 : Sending WM_CANCELMODE cancels a menu that is in tracking state * 2 : Sending WM_CANCELMODE does not work diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 7e33a2290aa..ef356652b71 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -295,7 +295,7 @@ static const struct message WmSwitchChild[] = { { WM_NCACTIVATE, sent|wparam|defwinproc, 0 }, /* in the 2nd MDI child */ { WM_MDIACTIVATE, sent|defwinproc }, /* in the 2nd MDI child */ { HCBT_MINMAX, hook|lparam, 0, SW_MAXIMIZE }, - /* Preparing for maximize and maximaze the 1st MDI child */ + /* Preparing for maximize and maximize the 1st MDI child */ { WM_GETMINMAXINFO, sent|defwinproc }, /* in the 1st MDI child */ { WM_WINDOWPOSCHANGING, sent|wparam|defwinproc, SWP_FRAMECHANGED|SWP_STATECHANGED }, /* in the 1st MDI child */ { WM_NCCALCSIZE, sent|wparam|defwinproc, 1 }, /* in the 1st MDI child */ @@ -6729,7 +6729,7 @@ static void test_interthread_messages(void) CloseHandle(wnd_event.start_event); SetLastError(0xdeadbeef); - ok(!DestroyWindow(wnd_event.hwnd), "DestroyWindow succeded\n"); + ok(!DestroyWindow(wnd_event.hwnd), "DestroyWindow succeeded\n"); ok(GetLastError() == ERROR_ACCESS_DENIED || GetLastError() == 0xdeadbeef, "wrong error code %d\n", GetLastError()); @@ -6751,7 +6751,7 @@ static void test_interthread_messages(void) SetLastError(0xdeadbeef); len = DispatchMessageA(&msg); ok((!len && GetLastError() == ERROR_MESSAGE_SYNC_ONLY) || broken(len), /* nt4 */ - "DispatchMessageA(WM_GETTEXT) succeded on another thread window: ret %d, error %d\n", len, GetLastError()); + "DispatchMessageA(WM_GETTEXT) succeeded on another thread window: ret %d, error %d\n", len, GetLastError()); /* the following test causes an exception in user.exe under win9x */ msg.hwnd = wnd_event.hwnd; diff --git a/dlls/user32/tests/scroll.c b/dlls/user32/tests/scroll.c index e3f6938129c..e4bfdb15de5 100644 --- a/dlls/user32/tests/scroll.c +++ b/dlls/user32/tests/scroll.c @@ -259,7 +259,7 @@ todo_wine "Scroll bar range is %d,%d. Expected 0,100. Style %08x\n", min, max, style); /* test GetScrollInfo, vist for vertical SB */ ret = GetScrollInfo( hwnd, SB_VERT, &si); - /* should fail if no H orV scroll bar styles are present. Succeed otherwise */ + /* should fail if no H or V scroll bar styles are present. Succeed otherwise */ if( !( style & ( WS_VSCROLL | WS_HSCROLL))) ok( !ret, "GetScrollInfo succeeded unexpectedly. Style is %08x\n", style); else @@ -269,7 +269,7 @@ todo_wine "GetScrollInfo failed unexpectedly. Style is %08x\n", style); /* Same for Horizontal SB */ ret = GetScrollInfo( hwnd, SB_HORZ, &si); - /* should fail if no H orV scroll bar styles are present. Succeed otherwise */ + /* should fail if no H or V scroll bar styles are present. Succeed otherwise */ if( !( style & ( WS_VSCROLL | WS_HSCROLL))) ok( !ret, "GetScrollInfo succeeded unexpectedly. Style is %08x\n", style); else @@ -316,7 +316,7 @@ todo_wine hwnd = CreateWindowExA( 0, "static", "", WS_POPUP | style, 0, 0, 10, 10, 0, 0, 0, NULL); assert( hwnd != 0); - /* Set Horizonta Scroll range to something that could be the default value it + /* Set Horizontal Scroll range to something that could be the default value it * already has */; ret = SetScrollRange( hwnd, SB_HORZ, 0, 100, FALSE); ok( ret, "SetScrollRange failed.\n"); diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c index ba1c8026a89..25356f65d9a 100644 --- a/dlls/user32/tests/sysparams.c +++ b/dlls/user32/tests/sysparams.c @@ -2463,7 +2463,7 @@ static DWORD WINAPI SysParamsThreadFunc( LPVOID lpParam ) * not all metrics are properly restored. Problems are * SM_CXMAXTRACK, SM_CYMAXTRACK * Fortunately setting the Non-Client metrics like in - * test_SPI_SETNONCLIENTMETRICS will corect this. That is why + * test_SPI_SETNONCLIENTMETRICS will correct this. That is why * we do the DISPLAY change now... */ test_WM_DISPLAYCHANGE(); test_SPI_SETNONCLIENTMETRICS(); /* 42 */ diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 00512bab46f..d309f981496 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5157,13 +5157,13 @@ static void test_SetWindowLong(void) retval = SetWindowLongPtr(NULL, GWLP_WNDPROC, 0); ok(!retval, "SetWindowLongPtr on invalid window handle should have returned 0 instead of 0x%lx\n", retval); ok(check_error(GetLastError(), ERROR_INVALID_WINDOW_HANDLE), - "SetWindowLongPtr should have set error to ERROR_INVALID_WINDOW_HANDLE instad of %d\n", GetLastError()); + "SetWindowLongPtr should have set error to ERROR_INVALID_WINDOW_HANDLE instead of %d\n", GetLastError()); SetLastError(0xdeadbeef); retval = SetWindowLongPtr(hwndMain, 0xdeadbeef, 0); ok(!retval, "SetWindowLongPtr on invalid index should have returned 0 instead of 0x%lx\n", retval); ok(check_error(GetLastError(), ERROR_INVALID_INDEX), - "SetWindowLongPtr should have set error to ERROR_INVALID_INDEX instad of %d\n", GetLastError()); + "SetWindowLongPtr should have set error to ERROR_INVALID_INDEX instead of %d\n", GetLastError()); SetLastError(0xdeadbeef); retval = SetWindowLongPtr(hwndMain, GWLP_WNDPROC, 0); @@ -5239,7 +5239,7 @@ static void test_ShowWindow(void) ok(!(style & WS_MAXIMIZE), "window should not be maximized\n"); GetWindowRect(hwnd, &rcMinimized); ok(!EqualRect(&rcMain, &rcMinimized), "rects shouldn't match\n"); - /* shouldn't be able to resize minized windows */ + /* shouldn't be able to resize minimized windows */ ret = SetWindowPos(hwnd, 0, 0, 0, (rcMinimized.right - rcMinimized.left) * 2, (rcMinimized.bottom - rcMinimized.top) * 2, diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 20772d65f45..30bf1c2ae05 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1760,7 +1760,7 @@ static void test_ScriptTextOut3(HDC hdc) ABC pABC[256]; RECT rect; - /* This is to ensure that non exisiting glyphs are translated into a valid glyph number */ + /* This is to ensure that non existing glyphs are translated into a valid glyph number */ cInChars = 2; cMaxItems = 255; hr = ScriptItemize(TestItem1, cInChars, cMaxItems, NULL, NULL, pItem, &pcItems); @@ -2116,9 +2116,9 @@ static void test_ScriptStringXtoCP_CPtoX(HDC hdc) hr = ScriptStringCPtoX(ssa, Cp, FALSE, &lead); ok(hr == S_OK, "ScriptStringCPtoX should return S_OK not %08x\n", hr); if (rtl[Cp]) - ok(lead > trail, "Leading values should be after trialing for rtl chracters(%i)\n",Cp); + ok(lead > trail, "Leading values should be after trialing for rtl characters(%i)\n",Cp); else - ok(lead < trail, "Trailing values should be after leading for ltr chracters(%i)\n",Cp); + ok(lead < trail, "Trailing values should be after leading for ltr characters(%i)\n",Cp); /* move by 1 pixel so that we are not inbetween 2 characters. That could result in being the lead of a rtl and at the same time the trail of an ltr */ @@ -2215,7 +2215,7 @@ static void test_ScriptStringXtoCP_CPtoX(HDC hdc) hr = ScriptStringXtoCP(ssa, X, &Ch, &iTrailing); ok(hr == S_OK, "ScriptStringXtoCP should return S_OK not %08x\n", hr); ok(Ch == String_len, "ScriptStringXtoCP should return Ch = %i not %d for X outside trailing edge\n", String_len, Ch); - ok(iTrailing == FALSE, "ScriptStringXtoCP should return iTrailing = 0 not %d for X = outside traling edge\n", + ok(iTrailing == FALSE, "ScriptStringXtoCP should return iTrailing = 0 not %d for X = outside trailing edge\n", iTrailing); /* diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index 9fb907092f3..dbdedad8a4a 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -807,7 +807,7 @@ static void test_EnumForms(LPSTR pName) RETURN_ON_DEACTIVATED_SPOOLER(res) if (!res || !hprinter) { - /* Open the local Prinserver is not supported on win9x */ + /* Open the local Printserver is not supported on win9x */ if (pName) skip("Failed to open '%s' (not supported on win9x)\n", pName); return; } diff --git a/dlls/xmllite/tests/reader.c b/dlls/xmllite/tests/reader.c index de25d7ebf6d..ec474531d8e 100644 --- a/dlls/xmllite/tests/reader.c +++ b/dlls/xmllite/tests/reader.c @@ -576,7 +576,7 @@ todo_wine { ok(type == XmlNodeType_XmlDeclaration, "Expected XmlNodeType_XmlDeclaration, got %s\n", type_to_str(type)); } - /* new version 1.2.x and 1.3.x properly update postition for */ + /* new version 1.2.x and 1.3.x properly update position for */ ok_pos(reader, 1, 3, -1, 55, TRUE); /* check attributes */