Commit bd7b345b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Assorted spelling fixes & co.

parent 3de330db
...@@ -1115,7 +1115,7 @@ START_TEST(rebar) ...@@ -1115,7 +1115,7 @@ START_TEST(rebar)
init_system_font_height(); init_system_font_height();
/* LoadLibrary is needed. This file has no references to functions in comctl32 */ /* LoadLibrary is needed. This file has no reference to functions in comctl32 */
hComctl32 = LoadLibraryA("comctl32.dll"); hComctl32 = LoadLibraryA("comctl32.dll");
pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx"); pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
if (!pInitCommonControlsEx) if (!pInitCommonControlsEx)
......
...@@ -460,7 +460,7 @@ static void test_status_ownerdraw(void) ...@@ -460,7 +460,7 @@ static void test_status_ownerdraw(void)
r = SendMessage(hWndStatus, SB_SETTEXT, SBT_OWNERDRAW, (LPARAM)statustext); r = SendMessage(hWndStatus, SB_SETTEXT, SBT_OWNERDRAW, (LPARAM)statustext);
ok( r == TRUE, "Sendmessage returned %d, expected 1\n", r); ok( r == TRUE, "Sendmessage returned %d, expected 1\n", r);
ok( 1 == g_wmdrawitm_ctr, "got %d drawitem messages expected 1\n", g_wmdrawitm_ctr); ok( 1 == g_wmdrawitm_ctr, "got %d drawitem messages expected 1\n", g_wmdrawitm_ctr);
/* ;and again */ /* and again */
g_wmdrawitm_ctr = 0; g_wmdrawitm_ctr = 0;
r = SendMessage(hWndStatus, SB_SETTEXT, SBT_OWNERDRAW, (LPARAM)statustext); r = SendMessage(hWndStatus, SB_SETTEXT, SBT_OWNERDRAW, (LPARAM)statustext);
ok( r == TRUE, "Sendmessage returned %d, expected 1\n", r); ok( r == TRUE, "Sendmessage returned %d, expected 1\n", r);
......
...@@ -1129,7 +1129,7 @@ static void test_expandinvisible(void) ...@@ -1129,7 +1129,7 @@ static void test_expandinvisible(void)
hTree = create_treeview_control(0); hTree = create_treeview_control(0);
/* The test builds the following tree and expands then node 1, while node 0 is collapsed. /* The test builds the following tree and expands node 1, while node 0 is collapsed.
* *
* 0 * 0
* |- 1 * |- 1
...@@ -1385,7 +1385,7 @@ static void test_expandnotify(void) ...@@ -1385,7 +1385,7 @@ static void test_expandnotify(void)
ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item); ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item);
expect(TRUE, ret); expect(TRUE, ret);
ok((item.state & TVIS_EXPANDED) == 0, "expected collapsed\n"); ok((item.state & TVIS_EXPANDED) == 0, "expected collapsed\n");
/* all next collapse/expand attempts won't produce any notifications, /* all further collapse/expand attempts won't produce any notifications,
the only way is to reset with all children removed */ the only way is to reset with all children removed */
ok_sequence(sequences, PARENT_SEQ_INDEX, empty_seq, "collapse after expand notifications", FALSE); ok_sequence(sequences, PARENT_SEQ_INDEX, empty_seq, "collapse after expand notifications", FALSE);
...@@ -1480,7 +1480,7 @@ static void test_TVS_SINGLEEXPAND(void) ...@@ -1480,7 +1480,7 @@ static void test_TVS_SINGLEEXPAND(void)
ok(ret, "got %d\n", ret); ok(ret, "got %d\n", ret);
ok_sequence(sequences, PARENT_SEQ_INDEX, parent_singleexpand_seq, "singleexpand notifications", FALSE); ok_sequence(sequences, PARENT_SEQ_INDEX, parent_singleexpand_seq, "singleexpand notifications", FALSE);
/* a workaround for NT4 that sends expanding notification when nothing is about to expand */ /* a workaround for NT4 that sends expand notifications when nothing is about to expand */
ret = SendMessageA(hTree, TVM_DELETEITEM, 0, (LPARAM)hRoot); ret = SendMessageA(hTree, TVM_DELETEITEM, 0, (LPARAM)hRoot);
ok(ret, "got %d\n", ret); ok(ret, "got %d\n", ret);
fill_tree(hTree); fill_tree(hTree);
......
...@@ -135,7 +135,7 @@ static void test_mutex(void) ...@@ -135,7 +135,7 @@ static void test_mutex(void)
ok(hCreated != NULL, "CreateMutex failed with error %d\n", GetLastError()); ok(hCreated != NULL, "CreateMutex failed with error %d\n", GetLastError());
hOpened = OpenMutex(0, FALSE, "WineTestMutex"); hOpened = OpenMutex(0, FALSE, "WineTestMutex");
ok(hOpened == NULL, "OpenMutex succeded\n"); ok(hOpened == NULL, "OpenMutex succeeded\n");
hOpened = OpenMutex(GENERIC_EXECUTE, FALSE, "WineTestMutex"); hOpened = OpenMutex(GENERIC_EXECUTE, FALSE, "WineTestMutex");
ok(hOpened != NULL, "OpenMutex failed with error %d\n", GetLastError()); ok(hOpened != NULL, "OpenMutex failed with error %d\n", GetLastError());
...@@ -171,7 +171,7 @@ static void test_mutex(void) ...@@ -171,7 +171,7 @@ static void test_mutex(void)
} }
} }
ok( failed == 0x0de0fffe, "open succeded when it shouldn't: %x\n", failed); ok( failed == 0x0de0fffe, "open succeeded when it shouldn't: %x\n", failed);
ret = ReleaseMutex(hCreated); ret = ReleaseMutex(hCreated);
ok(!ret && (GetLastError() == ERROR_NOT_OWNER), ok(!ret && (GetLastError() == ERROR_NOT_OWNER),
......
...@@ -173,10 +173,10 @@ static const WCHAR wfile[] = {'t','e','s','t','.','a','v','i',0}; ...@@ -173,10 +173,10 @@ static const WCHAR wfile[] = {'t','e','s','t','.','a','v','i',0};
static const char afile[] = "test.avi"; static const char afile[] = "test.avi";
/* This test doesn't use the quartz filtergraph because it makes it impossible /* This test doesn't use the quartz filtergraph because it makes it impossible
* to be certain that a thread is really one owned by the avi splitter * to be certain that a thread is really one owned by the avi splitter.
* A lot of the decoder filters will also have their own thread, and windows' * A lot of the decoder filters will also have their own thread, and Windows'
* filtergraph has a separate thread for start/stop/seeking requests. * filtergraph has a separate thread for start/stop/seeking requests.
* By avoiding the filtergraph all together and connecting streams directly to * By avoiding the filtergraph altogether and connecting streams directly to
* the null renderer I am sure that this is not the case here. * the null renderer I am sure that this is not the case here.
*/ */
static void test_threads(void) static void test_threads(void)
...@@ -200,7 +200,7 @@ static void test_threads(void) ...@@ -200,7 +200,7 @@ static void test_threads(void)
return; return;
} }
/* Before doing anything (number of threads at the start differs per OS) */ /* Before doing anything (the thread count at the start differs per OS) */
baselevel = count_threads(); baselevel = count_threads();
file = CreateFileW(wfile, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, file = CreateFileW(wfile, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE,
...@@ -280,7 +280,7 @@ static void test_threads(void) ...@@ -280,7 +280,7 @@ static void test_threads(void)
curlevel = count_threads(); curlevel = count_threads();
ok(curlevel == baselevel, ok(curlevel == baselevel,
"Amount of threads should be %d not %d\n", baselevel, curlevel); "The thread count should be %d not %d\n", baselevel, curlevel);
hr = IPin_Connect(filepin, avipin, NULL); hr = IPin_Connect(filepin, avipin, NULL);
ok(hr == S_OK, "Could not connect: %08x\n", hr); ok(hr == S_OK, "Could not connect: %08x\n", hr);
...@@ -290,7 +290,7 @@ static void test_threads(void) ...@@ -290,7 +290,7 @@ static void test_threads(void)
expected = 1 + baselevel; expected = 1 + baselevel;
curlevel = count_threads(); curlevel = count_threads();
ok(curlevel == expected, ok(curlevel == expected,
"Amount of threads should be %d not %d\n", expected, curlevel); "The thread count should be %d not %d\n", expected, curlevel);
IUnknown_Release(avipin); IUnknown_Release(avipin);
avipin = NULL; avipin = NULL;
...@@ -346,7 +346,7 @@ static void test_threads(void) ...@@ -346,7 +346,7 @@ static void test_threads(void)
if (hr != S_OK) if (hr != S_OK)
goto fail2; goto fail2;
/* At this point there is a minimalistic connected avi splitter that can /* At this point there is a minimalistic connected avi splitter that can
* Be used for all sorts of source filter tests, however that still needs * be used for all sorts of source filter tests. However that still needs
* to be written at a later time. * to be written at a later time.
* *
* Interesting tests: * Interesting tests:
...@@ -366,7 +366,7 @@ static void test_threads(void) ...@@ -366,7 +366,7 @@ static void test_threads(void)
curlevel = count_threads(); curlevel = count_threads();
ok(curlevel == expected, ok(curlevel == expected,
"Amount of threads should be %d not %d\n", expected, curlevel); "The thread count should be %d not %d\n", expected, curlevel);
IBaseFilter_Pause(pavi); IBaseFilter_Pause(pavi);
IBaseFilter_Pause(preader); IBaseFilter_Pause(preader);
...@@ -442,7 +442,7 @@ fail: ...@@ -442,7 +442,7 @@ fail:
curlevel = count_threads(); curlevel = count_threads();
todo_wine todo_wine
ok(curlevel == baselevel, ok(curlevel == baselevel,
"Amount of threads should be %d not %d\n", baselevel, curlevel); "The thread count should be %d not %d\n", baselevel, curlevel);
} }
START_TEST(avisplitter) START_TEST(avisplitter)
......
...@@ -2364,7 +2364,7 @@ LPWSTR WINAPI StrFormatByteSizeW(LONGLONG llBytes, LPWSTR lpszDest, UINT cchMax) ...@@ -2364,7 +2364,7 @@ LPWSTR WINAPI StrFormatByteSizeW(LONGLONG llBytes, LPWSTR lpszDest, UINT cchMax)
* counts that lie exactly on a 1024 byte boundary. * counts that lie exactly on a 1024 byte boundary.
*/ */
if (i > 8) if (i > 8)
dBytes = (double)(llBytes >> 20) + 0.001; /* Scale down by I MB */ dBytes = (double)(llBytes >> 20) + 0.001; /* Scale down by 1 MB */
else else
dBytes = (double)llBytes + 0.00001; dBytes = (double)llBytes + 0.00001;
......
...@@ -2855,7 +2855,7 @@ static void test_SHGetShellKey(void) ...@@ -2855,7 +2855,7 @@ static void test_SHGetShellKey(void)
hkey = pSHGetShellKey(SHKEY_Root_HKLM, NULL, FALSE); hkey = pSHGetShellKey(SHKEY_Root_HKLM, NULL, FALSE);
ok(hkey != NULL, "Can't open key\n"); ok(hkey != NULL, "Can't open key\n");
ok(SUCCEEDED(RegDeleteKeyW(hkey, WineTestW)), "Can't delte key\n"); ok(SUCCEEDED(RegDeleteKeyW(hkey, WineTestW)), "Can't delete key\n");
RegCloseKey(hkey); RegCloseKey(hkey);
hkey = pSHGetShellKey(SHKEY_Root_HKLM, WineTestW, TRUE); hkey = pSHGetShellKey(SHKEY_Root_HKLM, WineTestW, TRUE);
...@@ -2911,7 +2911,7 @@ static void test_SHGetShellKey(void) ...@@ -2911,7 +2911,7 @@ static void test_SHGetShellKey(void)
hkey = pSHGetShellKey(SHKEY_Root_HKLM, NULL, FALSE); hkey = pSHGetShellKey(SHKEY_Root_HKLM, NULL, FALSE);
ok(hkey != NULL, "Can't create key\n"); ok(hkey != NULL, "Can't create key\n");
ok(SUCCEEDED(RegDeleteKeyW(hkey, WineTestW)), "Can't delte key\n"); ok(SUCCEEDED(RegDeleteKeyW(hkey, WineTestW)), "Can't delete key\n");
RegCloseKey(hkey); RegCloseKey(hkey);
} }
......
...@@ -369,7 +369,7 @@ static WCHAR* utf8_chars_to_wchars(LPCSTR string) ...@@ -369,7 +369,7 @@ static WCHAR* utf8_chars_to_wchars(LPCSTR string)
* FIXME: should not use stdio * FIXME: should not use stdio
*/ */
static HRESULT convert_to_native_icon(IStream *icoFile, int *indeces, int numIndeces, static HRESULT convert_to_native_icon(IStream *icoFile, int *indices, int numIndices,
const CLSID *outputFormat, const char *outputFileName, LPCWSTR commentW) const CLSID *outputFormat, const char *outputFileName, LPCWSTR commentW)
{ {
WCHAR *dosOutputFileName = NULL; WCHAR *dosOutputFileName = NULL;
...@@ -420,7 +420,7 @@ static HRESULT convert_to_native_icon(IStream *icoFile, int *indeces, int numInd ...@@ -420,7 +420,7 @@ static HRESULT convert_to_native_icon(IStream *icoFile, int *indeces, int numInd
goto end; goto end;
} }
for (i = 0; i < numIndeces; i++) for (i = 0; i < numIndices; i++)
{ {
IWICBitmapFrameDecode *sourceFrame = NULL; IWICBitmapFrameDecode *sourceFrame = NULL;
IWICBitmapSource *sourceBitmap = NULL; IWICBitmapSource *sourceBitmap = NULL;
...@@ -428,10 +428,10 @@ static HRESULT convert_to_native_icon(IStream *icoFile, int *indeces, int numInd ...@@ -428,10 +428,10 @@ static HRESULT convert_to_native_icon(IStream *icoFile, int *indeces, int numInd
IPropertyBag2 *options = NULL; IPropertyBag2 *options = NULL;
UINT width, height; UINT width, height;
hr = IWICBitmapDecoder_GetFrame(decoder, indeces[i], &sourceFrame); hr = IWICBitmapDecoder_GetFrame(decoder, indices[i], &sourceFrame);
if (FAILED(hr)) if (FAILED(hr))
{ {
WINE_ERR("error 0x%08X getting frame %d\n", hr, indeces[i]); WINE_ERR("error 0x%08X getting frame %d\n", hr, indices[i]);
goto endloop; goto endloop;
} }
hr = WICConvertBitmapSource(&GUID_WICPixelFormat32bppBGRA, (IWICBitmapSource*)sourceFrame, &sourceBitmap); hr = WICConvertBitmapSource(&GUID_WICPixelFormat32bppBGRA, (IWICBitmapSource*)sourceFrame, &sourceBitmap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment