Commit 3428b94a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Assorted spelling and case fixes.

parent 1cc79eae
...@@ -143,7 +143,7 @@ static void test_get_shader_constant_table_ex(void) ...@@ -143,7 +143,7 @@ static void test_get_shader_constant_table_ex(void)
ok(size == 28, "Got result %x, expected 28\n", size); ok(size == 28, "Got result %x, expected 28\n", size);
data = ID3DXConstantTable_GetBufferPointer(constant_table); data = ID3DXConstantTable_GetBufferPointer(constant_table);
ok(!memcmp(data, shader_with_ctab + 6, size), "Retreived wrong CTAB data\n"); ok(!memcmp(data, shader_with_ctab + 6, size), "Retrieved wrong CTAB data\n");
hr = ID3DXConstantTable_GetDesc(constant_table, NULL); hr = ID3DXConstantTable_GetDesc(constant_table, NULL);
ok(hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3DERR_INVALIDCALL)\n", hr, D3DERR_INVALIDCALL); ok(hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3DERR_INVALIDCALL)\n", hr, D3DERR_INVALIDCALL);
......
...@@ -156,7 +156,7 @@ static void test_charset(void) ...@@ -156,7 +156,7 @@ static void test_charset(void)
hr = MimeOleGetInternat(&internat); hr = MimeOleGetInternat(&internat);
ok(hr == S_OK, "ret %08x\n", hr); ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeInternational_FindCharset(internat, "non-existent", &hcs); hr = IMimeInternational_FindCharset(internat, "nonexistent", &hcs);
ok(hr == MIME_E_NOT_FOUND, "got %08x\n", hr); ok(hr == MIME_E_NOT_FOUND, "got %08x\n", hr);
hr = IMimeInternational_FindCharset(internat, "windows-1252", &hcs_windows_1252); hr = IMimeInternational_FindCharset(internat, "windows-1252", &hcs_windows_1252);
......
...@@ -1017,7 +1017,7 @@ static void test_GetLongPathNameA(void) ...@@ -1017,7 +1017,7 @@ static void test_GetLongPathNameA(void)
/* Test a normal path with a small buffer size */ /* Test a normal path with a small buffer size */
memset(temppath, 0, MAX_PATH); memset(temppath, 0, MAX_PATH);
length = pGetLongPathNameA(tempfile, temppath, 4); length = pGetLongPathNameA(tempfile, temppath, 4);
/* We have a failure so length should be the minumum plus the terminating '0' */ /* We have a failure so length should be the minimum plus the terminating '0' */
ok(length >= lstrlen(tempfile) + 1, "Wrong length\n"); ok(length >= lstrlen(tempfile) + 1, "Wrong length\n");
ok(temppath[0] == 0, "Buffer should not have been touched\n"); ok(temppath[0] == 0, "Buffer should not have been touched\n");
......
/* /*
* Copyright 2010 Maarten Lankhorst for Codeweavers * Copyright 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
/* /*
* Copyright 2010 Maarten Lankhorst for Codeweavers * Copyright 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -177,7 +177,7 @@ static void test_audioclient(IAudioClient *ac) ...@@ -177,7 +177,7 @@ static void test_audioclient(IAudioClient *ac)
ok(hr == E_INVALIDARG, "Initialize with invalid flags returns %08x\n", hr); ok(hr == E_INVALIDARG, "Initialize with invalid flags returns %08x\n", hr);
/* It seems that if length > 2s or periodicity != 0 the length is ignored and call succeeds /* It seems that if length > 2s or periodicity != 0 the length is ignored and call succeeds
* Since we can only initialize succesfully once skip those tests * Since we can only initialize successfully once, skip those tests.
*/ */
hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, NULL, NULL); hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, NULL, NULL);
ok(hr == E_POINTER, "Initialize with null format returns %08x\n", hr); ok(hr == E_POINTER, "Initialize with null format returns %08x\n", hr);
......
...@@ -838,7 +838,7 @@ static HRESULT create_row_proxy(IWineRowServer *server, IUnknown **obj) ...@@ -838,7 +838,7 @@ static HRESULT create_row_proxy(IWineRowServer *server, IUnknown **obj)
proxy->server = server; proxy->server = server;
*obj = (IUnknown*)&proxy->row_vtbl; *obj = (IUnknown*)&proxy->row_vtbl;
TRACE("returing %p\n", *obj); TRACE("returning %p\n", *obj);
return S_OK; return S_OK;
} }
...@@ -1339,7 +1339,7 @@ HRESULT create_rowset_proxy(IWineRowServer *server, IUnknown **obj) ...@@ -1339,7 +1339,7 @@ HRESULT create_rowset_proxy(IWineRowServer *server, IUnknown **obj)
proxy->server = server; proxy->server = server;
*obj = (IUnknown *)&proxy->rowset_vtbl; *obj = (IUnknown *)&proxy->rowset_vtbl;
TRACE("returing %p\n", *obj); TRACE("returning %p\n", *obj);
return S_OK; return S_OK;
} }
...@@ -1474,7 +1474,7 @@ static HRESULT WINAPI marshal_UnmarshalInterface(IMarshal *iface, IStream *strea ...@@ -1474,7 +1474,7 @@ static HRESULT WINAPI marshal_UnmarshalInterface(IMarshal *iface, IStream *strea
IWineRowServer_Release(server); IWineRowServer_Release(server);
} }
TRACE("returing %p\n", *obj); TRACE("returning %p\n", *obj);
return hr; return hr;
} }
...@@ -1522,7 +1522,7 @@ static HRESULT create_marshal(IUnknown *outer, const CLSID *class, void **obj) ...@@ -1522,7 +1522,7 @@ static HRESULT create_marshal(IUnknown *outer, const CLSID *class, void **obj)
marshal->ref = 1; marshal->ref = 1;
*obj = &marshal->marshal_vtbl; *obj = &marshal->marshal_vtbl;
TRACE("returing %p\n", *obj); TRACE("returning %p\n", *obj);
return S_OK; return S_OK;
} }
......
...@@ -811,7 +811,7 @@ static HRESULT WINAPI ViewObject_SetAdvise(IViewObjectEx *iface, DWORD aspects, ...@@ -811,7 +811,7 @@ static HRESULT WINAPI ViewObject_SetAdvise(IViewObjectEx *iface, DWORD aspects,
TRACE("(%p)->(%d %d %p)\n", This, aspects, advf, pAdvSink); TRACE("(%p)->(%d %d %p)\n", This, aspects, advf, pAdvSink);
if(aspects != DVASPECT_CONTENT || advf != ADVF_PRIMEFIRST) if(aspects != DVASPECT_CONTENT || advf != ADVF_PRIMEFIRST)
FIXME("unsuported arguments\n"); FIXME("unsupported arguments\n");
if(This->doc_obj->view_sink) if(This->doc_obj->view_sink)
IAdviseSink_Release(This->doc_obj->view_sink); IAdviseSink_Release(This->doc_obj->view_sink);
......
...@@ -1300,7 +1300,7 @@ end_of_mci_open: ...@@ -1300,7 +1300,7 @@ end_of_mci_open:
case MCI_SEEK: case MCI_SEEK:
case MCI_STEP: case MCI_STEP:
{ {
MCI_SEEK_PARMS mci_seek; /* Layout is useable as MCI_XYZ_STEP_PARMS */ MCI_SEEK_PARMS mci_seek; /* Layout is usable as MCI_XYZ_STEP_PARMS */
DWORD flags = MCI_STEP == wMsg ? 0 : DWORD flags = MCI_STEP == wMsg ? 0 :
MCIWND_START == lParam ? MCI_SEEK_TO_START : MCIWND_START == lParam ? MCI_SEEK_TO_START :
MCIWND_END == lParam ? MCI_SEEK_TO_END : MCI_TO; MCIWND_END == lParam ? MCI_SEEK_TO_END : MCI_TO;
......
...@@ -255,7 +255,7 @@ static void test_DispGetParam(void) ...@@ -255,7 +255,7 @@ static void test_DispGetParam(void)
CLEAR_VARARG(vararg); CLEAR_VARARG(vararg);
/* Coerce the the first parameter, which is of type VT_EMPTY, to VT_BSTR. */ /* Coerce the first parameter, which is of type VT_EMPTY, to VT_BSTR. */
VariantInit(&vararg[0]); VariantInit(&vararg[0]);
INIT_DISPPARAMS(dispparams, vararg, NULL, 1, 0); INIT_DISPPARAMS(dispparams, vararg, NULL, 1, 0);
VariantInit(&result); VariantInit(&result);
......
...@@ -954,8 +954,9 @@ static void test_hfont_lifetime(void) ...@@ -954,8 +954,9 @@ static void test_hfont_lifetime(void)
ok(obj_type == 0, "%d: got obj type %d\n", i, obj_type); ok(obj_type == 0, "%d: got obj type %d\n", i, obj_type);
} }
/* Interestingly if we release a non-existent reference on the hfont, it persists /* Interestingly if we release a nonexistent reference on the hfont,
until the font object is released */ * it persists until the font object is released
*/
for(i = 0; i < 100; i++) for(i = 0; i < 100; i++)
{ {
size.int64 = (i + 10) * 20000; size.int64 = (i + 10) * 20000;
......
...@@ -854,7 +854,7 @@ SampleGrabber_ISampleGrabber_GetCurrentBuffer(ISampleGrabber *iface, LONG *bufSi ...@@ -854,7 +854,7 @@ SampleGrabber_ISampleGrabber_GetCurrentBuffer(ISampleGrabber *iface, LONG *bufSi
static HRESULT WINAPI static HRESULT WINAPI
SampleGrabber_ISampleGrabber_GetCurrentSample(ISampleGrabber *iface, IMediaSample **sample) SampleGrabber_ISampleGrabber_GetCurrentSample(ISampleGrabber *iface, IMediaSample **sample)
{ {
/* MS doesn't implement it either, noone should call it */ /* MS doesn't implement it either, no one should call it */
WARN("(%p): not implemented\n", sample); WARN("(%p): not implemented\n", sample);
return E_NOTIMPL; return E_NOTIMPL;
} }
......
/* /*
* Unit tests for DSound Renderer functions * Unit tests for DSound Renderer functions
* *
* Copyright (C) 2010 Maarten Lankhorst for Codeweavers * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
* Copyright (C) 2007 Google (Lei Zhang) * Copyright (C) 2007 Google (Lei Zhang)
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
......
...@@ -500,7 +500,7 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen) ...@@ -500,7 +500,7 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen)
return S_OK; return S_OK;
} }
/* Did not find a value in the registry or the user buffer is to small */ /* Did not find a value in the registry or the user buffer is too small */
mylcid = GetUserDefaultLCID(); mylcid = GetUserDefaultLCID();
retval = LcidToRfc1766W(mylcid, mystr, mystrlen); retval = LcidToRfc1766W(mylcid, mystr, mystrlen);
len = lstrlenW(mystr); len = lstrlenW(mystr);
......
...@@ -186,7 +186,7 @@ static void test_GetAcceptLanguagesA(void) ...@@ -186,7 +186,7 @@ static void test_GetAcceptLanguagesA(void)
/* There is no space for the string in the registry. /* There is no space for the string in the registry.
When the buffer is large enough, the default language is returned When the buffer is large enough, the default language is returned
When the buffer is to small for that fallback, win7_32 and w2k8_64 When the buffer is too small for that fallback, win7_32 and w2k8_64
and above fail with HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), but and above fail with HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), but
recent os succeed and return a partial result while recent os succeed and return a partial result while
older os succeed and overflow the buffer */ older os succeed and overflow the buffer */
...@@ -254,7 +254,7 @@ static void test_GetAcceptLanguagesA(void) ...@@ -254,7 +254,7 @@ static void test_GetAcceptLanguagesA(void)
memset(buffer, '#', maxlen); memset(buffer, '#', maxlen);
buffer[maxlen] = 0; buffer[maxlen] = 0;
hr = pGetAcceptLanguagesA( buffer, &len); hr = pGetAcceptLanguagesA( buffer, &len);
/* When the buffer is to small, win7_32 and w2k8_64 and above fail with /* When the buffer is too small, win7_32 and w2k8_64 and above fail with
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), other versions suceed HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), other versions suceed
and return a partial 0 terminated result while other versions and return a partial 0 terminated result while other versions
fail with E_INVALIDARG and return a partial unterminated result */ fail with E_INVALIDARG and return a partial unterminated result */
......
...@@ -662,7 +662,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative, ...@@ -662,7 +662,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
} }
} }
/* If there is a '#' and the characters immediately preceeding it are /* If there is a '#' and the characters immediately preceding it are
* ".htm[l]", then begin looking for the last leaf starting from * ".htm[l]", then begin looking for the last leaf starting from
* the '#'. Otherwise the '#' is not meaningful and just start * the '#'. Otherwise the '#' is not meaningful and just start
* looking from the end. */ * looking from the end. */
......
/* /*
* Copyright 2009 Piotr Caban for Codeweavers * Copyright 2009 Piotr Caban for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
/* /*
* Copyright 2009 Piotr Caban for Codeweavers * Copyright 2009 Piotr Caban for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
...@@ -461,7 +461,7 @@ static void test_editselection(void) ...@@ -461,7 +461,7 @@ static void test_editselection(void)
ok(LOWORD(len)==1, "Unexpected start position for selection %d\n", LOWORD(len)); ok(LOWORD(len)==1, "Unexpected start position for selection %d\n", LOWORD(len));
ok(HIWORD(len)==1, "Unexpected end position for selection %d\n", HIWORD(len)); ok(HIWORD(len)==1, "Unexpected end position for selection %d\n", HIWORD(len));
/* Now what happens when it gets more focus a second time - it doesnt reselect */ /* Now what happens when it gets more focus a second time - it doesn't reselect */
SendMessage(hCombo, WM_SETFOCUS, 0, (LPARAM)hEdit); SendMessage(hCombo, WM_SETFOCUS, 0, (LPARAM)hEdit);
len = SendMessage(hCombo, CB_GETEDITSEL, 0,0); len = SendMessage(hCombo, CB_GETEDITSEL, 0,0);
ok(LOWORD(len)==1, "Unexpected start position for selection %d\n", LOWORD(len)); ok(LOWORD(len)==1, "Unexpected start position for selection %d\n", LOWORD(len));
......
...@@ -2474,7 +2474,7 @@ struct wined3d_map_range ...@@ -2474,7 +2474,7 @@ struct wined3d_map_range
#define WINED3D_BUFFER_CREATEBO 0x04 /* Attempt to create a buffer object next PreLoad */ #define WINED3D_BUFFER_CREATEBO 0x04 /* Attempt to create a buffer object next PreLoad */
#define WINED3D_BUFFER_DOUBLEBUFFER 0x08 /* Use a vbo and local allocated memory */ #define WINED3D_BUFFER_DOUBLEBUFFER 0x08 /* Use a vbo and local allocated memory */
#define WINED3D_BUFFER_FLUSH 0x10 /* Manual unmap flushing */ #define WINED3D_BUFFER_FLUSH 0x10 /* Manual unmap flushing */
#define WINED3D_BUFFER_DISCARD 0x20 /* A DISCARD lock has occured since the last PreLoad */ #define WINED3D_BUFFER_DISCARD 0x20 /* A DISCARD lock has occurred since the last PreLoad */
#define WINED3D_BUFFER_NOSYNC 0x40 /* All locks since the last PreLoad had NOOVERWRITE set */ #define WINED3D_BUFFER_NOSYNC 0x40 /* All locks since the last PreLoad had NOOVERWRITE set */
struct wined3d_buffer struct wined3d_buffer
......
...@@ -1822,7 +1822,7 @@ MMRESULT WINAPI midiStreamOut(HMIDISTRM hMidiStrm, LPMIDIHDR lpMidiHdr, ...@@ -1822,7 +1822,7 @@ MMRESULT WINAPI midiStreamOut(HMIDISTRM hMidiStrm, LPMIDIHDR lpMidiHdr,
if (cbMidiHdr < offsetof(MIDIHDR,dwOffset) || !lpMidiHdr || !lpMidiHdr->lpData if (cbMidiHdr < offsetof(MIDIHDR,dwOffset) || !lpMidiHdr || !lpMidiHdr->lpData
|| lpMidiHdr->dwBufferLength < lpMidiHdr->dwBytesRecorded) || lpMidiHdr->dwBufferLength < lpMidiHdr->dwBytesRecorded)
return MMSYSERR_INVALPARAM; return MMSYSERR_INVALPARAM;
/* FIXME: Native additionaly checks if the MIDIEVENTs in lpData /* FIXME: Native additionally checks if the MIDIEVENTs in lpData
* exactly fit dwBytesRecorded. */ * exactly fit dwBytesRecorded. */
if (!(lpMidiHdr->dwFlags & MHDR_PREPARED)) if (!(lpMidiHdr->dwFlags & MHDR_PREPARED))
......
/* /*
* Copyright (C) 2010 Maarten Lankhorst for Codeweavers * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
/* /*
* Copyright (C) 2010 Maarten Lankhorst for Codeweavers * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
/* /*
* Copyright (C) 2010 Maarten Lankhorst for Codeweavers * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
/* /*
* Copyright (C) 2010 Maarten Lankhorst for Codeweavers * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
......
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