Commit 05faae7b authored by Austin English's avatar Austin English Committed by Alexandre Julliard

Spelling fixes.

parent f2dccab7
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
typedef void (*vtable_ptr)(); typedef void (*vtable_ptr)();
/* type_info object, see cpp.c for inplementation */ /* type_info object, see cpp.c for implementation */
typedef struct __type_info typedef struct __type_info
{ {
const vtable_ptr *vtable; const vtable_ptr *vtable;
......
...@@ -124,7 +124,7 @@ void CDECL MSVCRT_I10_OUTPUT(void) ...@@ -124,7 +124,7 @@ void CDECL MSVCRT_I10_OUTPUT(void)
{ {
/* FIXME: This is probably data, not a function */ /* FIXME: This is probably data, not a function */
/* no it is a function. I10 is an Int of 10 bytes */ /* no it is a function. I10 is an Int of 10 bytes */
/* also known as 80 bit flotaing point (long double */ /* also known as 80 bit floating point (long double */
/* for some compilers, not MSVC) */ /* for some compilers, not MSVC) */
} }
......
...@@ -576,11 +576,11 @@ static void test_wcscpy_s(void) ...@@ -576,11 +576,11 @@ static void test_wcscpy_s(void)
return; return;
} }
/* Test NULl Dest */ /* Test NULL Dest */
ret = p_wcscpy_s(NULL, 18, szLongText); ret = p_wcscpy_s(NULL, 18, szLongText);
ok(ret == EINVAL, "p_wcscpy_s expect EINVAL got %d\n", ret); ok(ret == EINVAL, "p_wcscpy_s expect EINVAL got %d\n", ret);
/* Test NULl Source */ /* Test NULL Source */
szDest[0] = 'A'; szDest[0] = 'A';
ret = p_wcscpy_s(szDest, 18, NULL); ret = p_wcscpy_s(szDest, 18, NULL);
ok(ret == EINVAL, "expected EINVAL got %d\n", ret); ok(ret == EINVAL, "expected EINVAL got %d\n", ret);
......
...@@ -516,7 +516,7 @@ static char* get_template_name(struct parsed_symbol* sym) ...@@ -516,7 +516,7 @@ static char* get_template_name(struct parsed_symbol* sym)
* template argument list). The class name components appear in the reverse * template argument list). The class name components appear in the reverse
* order in the mangled name, e.g aaa@bbb@ccc@@ will be demangled to * order in the mangled name, e.g aaa@bbb@ccc@@ will be demangled to
* ccc::bbb::aaa * ccc::bbb::aaa
* For each of this class name componets a string will be allocated in the * For each of these class name components a string will be allocated in the
* array. * array.
*/ */
static BOOL get_class(struct parsed_symbol* sym) static BOOL get_class(struct parsed_symbol* sym)
...@@ -678,7 +678,7 @@ static const char* get_simple_type(char c) ...@@ -678,7 +678,7 @@ static const char* get_simple_type(char c)
} }
/******************************************************************* /*******************************************************************
* get_extented_type * get_extended_type
* Return a string containing an allocated string for a simple data type * Return a string containing an allocated string for a simple data type
*/ */
static const char* get_extended_type(char c) static const char* get_extended_type(char c)
......
...@@ -104,7 +104,7 @@ VOID WINAPI GetAcceptExSockaddrs( ...@@ -104,7 +104,7 @@ VOID WINAPI GetAcceptExSockaddrs(
BOOL WINAPI TransmitFile( BOOL WINAPI TransmitFile(
SOCKET hSocket, /* [in] Handle to a connected socket */ SOCKET hSocket, /* [in] Handle to a connected socket */
HANDLE hFile, /* [in] Handle to the open file that should be HANDLE hFile, /* [in] Handle to the open file that should be
transmited */ transmitted */
DWORD nNumberOfBytesToWrite, /* [in] Number of file bytes to DWORD nNumberOfBytesToWrite, /* [in] Number of file bytes to
transmit */ transmit */
DWORD nNumberOfBytesPerSend, /* [in] Size in bytes of each block of DWORD nNumberOfBytesPerSend, /* [in] Size in bytes of each block of
......
...@@ -1007,7 +1007,7 @@ static HRESULT WINAPI xmlnode_get_xml( ...@@ -1007,7 +1007,7 @@ static HRESULT WINAPI xmlnode_get_xml(
{ {
const xmlChar *pContent; const xmlChar *pContent;
/* Attribute Nodes return a space infront of their name */ /* Attribute Nodes return a space in front of their name */
pContent = xmlBufferContent(pXmlBuf); pContent = xmlBufferContent(pXmlBuf);
if( ((char*)pContent)[0] == ' ') if( ((char*)pContent)[0] == ' ')
*xmlString = bstr_from_xmlChar(pContent+1); *xmlString = bstr_from_xmlChar(pContent+1);
......
...@@ -206,7 +206,7 @@ static HRESULT WINAPI dom_pi_put_nodeValue( ...@@ -206,7 +206,7 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
TRACE("%p\n", This ); TRACE("%p\n", This );
/* Cannot set data to a PI node whos target is 'xml' */ /* Cannot set data to a PI node whose target is 'xml' */
hr = dom_pi_get_nodeName(iface, &sTarget); hr = dom_pi_get_nodeName(iface, &sTarget);
if(hr == S_OK) if(hr == S_OK)
{ {
...@@ -530,7 +530,7 @@ static HRESULT WINAPI dom_pi_put_data( ...@@ -530,7 +530,7 @@ static HRESULT WINAPI dom_pi_put_data(
TRACE("%p %s\n", This, debugstr_w(data) ); TRACE("%p %s\n", This, debugstr_w(data) );
/* Cannot set data to a PI node whos target is 'xml' */ /* Cannot set data to a PI node whose target is 'xml' */
hr = dom_pi_get_nodeName(iface, &sTarget); hr = dom_pi_get_nodeName(iface, &sTarget);
if(hr == S_OK) if(hr == S_OK)
{ {
......
...@@ -1783,7 +1783,7 @@ static void test_IXMLDOMDocument2(void) ...@@ -1783,7 +1783,7 @@ static void test_IXMLDOMDocument2(void)
ole_check(IXMLDOMDocument2_setProperty(doc2, _bstr_("SelectionLanguage"), _variantbstr_("XPath"))); ole_check(IXMLDOMDocument2_setProperty(doc2, _bstr_("SelectionLanguage"), _variantbstr_("XPath")));
ole_check(IXMLDOMDocument2_setProperty(doc2, _bstr_("SelectionLanguage"), _variantbstr_("XSLPattern"))); ole_check(IXMLDOMDocument2_setProperty(doc2, _bstr_("SelectionLanguage"), _variantbstr_("XSLPattern")));
/* contrary to what MSDN calims you can switch back from XPath to XSLPattern */ /* contrary to what MSDN claims you can switch back from XPath to XSLPattern */
ole_check(IXMLDOMDocument2_getProperty(doc2, _bstr_("SelectionLanguage"), &var)); ole_check(IXMLDOMDocument2_getProperty(doc2, _bstr_("SelectionLanguage"), &var));
expect_eq(V_VT(&var), VT_BSTR, int, "%x"); expect_eq(V_VT(&var), VT_BSTR, int, "%x");
expect_bstr_eq_and_free(V_BSTR(&var), "XSLPattern"); expect_bstr_eq_and_free(V_BSTR(&var), "XSLPattern");
......
...@@ -77,7 +77,7 @@ VOID WINAPI DsRoleFreeMemory(PVOID Buffer) ...@@ -77,7 +77,7 @@ VOID WINAPI DsRoleFreeMemory(PVOID Buffer)
* DsRoleGetPrimaryDomainInformation (NETAPI32.@) * DsRoleGetPrimaryDomainInformation (NETAPI32.@)
* *
* PARAMS * PARAMS
* lpServer [I] Pointer to UNICODE string with Computername * lpServer [I] Pointer to UNICODE string with ComputerName
* InfoLevel [I] Type of data to retrieve * InfoLevel [I] Type of data to retrieve
* Buffer [O] Pointer to to the requested data * Buffer [O] Pointer to to the requested data
* *
......
...@@ -45,7 +45,7 @@ typedef struct _NBNameCacheEntry ...@@ -45,7 +45,7 @@ typedef struct _NBNameCacheEntry
/* Functions that create, manipulate, and destroy a name cache. Thread-safe, /* Functions that create, manipulate, and destroy a name cache. Thread-safe,
* with the exception of NBNameCacheDestroy--ensure that no other threads are * with the exception of NBNameCacheDestroy--ensure that no other threads are
* manipulating the cache before destoying it. * manipulating the cache before destroying it.
*/ */
/* Allocates a new name cache from heap, and sets the expire time on new /* Allocates a new name cache from heap, and sets the expire time on new
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* name. Although it allows sessions to be created with '*' as the calling * name. Although it allows sessions to be created with '*' as the calling
* name, doing so results in timeouts for all receives, because the * name, doing so results in timeouts for all receives, because the
* application never gets them. * application never gets them.
* So, a well-behaved Netbios application will typically want to register a * So, a well-behaved NetBIOS application will typically want to register a
* name. I should probably support a do-nothing name list that allows * name. I should probably support a do-nothing name list that allows
* NCBADDNAME to add to it, but doesn't actually register the name, or does * NCBADDNAME to add to it, but doesn't actually register the name, or does
* attempt to register it without being able to defend it. * attempt to register it without being able to defend it.
......
...@@ -103,7 +103,7 @@ static void wprint_mac(WCHAR* buffer, int len, const MIB_IFROW *ifRow) ...@@ -103,7 +103,7 @@ static void wprint_mac(WCHAR* buffer, int len, const MIB_IFROW *ifRow)
/* Theoretically this could be too short, except that MS defines /* Theoretically this could be too short, except that MS defines
* MAX_ADAPTER_NAME as 128, and MAX_INTERFACE_NAME_LEN as 256, and both * MAX_ADAPTER_NAME as 128, and MAX_INTERFACE_NAME_LEN as 256, and both
* represent a count of WCHARs, so even with an extroardinarily long header * represent a count of WCHARs, so even with an extraordinarily long header
* this will be plenty * this will be plenty
*/ */
#define MAX_TRANSPORT_NAME MAX_INTERFACE_NAME_LEN #define MAX_TRANSPORT_NAME MAX_INTERFACE_NAME_LEN
......
...@@ -1866,7 +1866,7 @@ static inline int get_dos_prefix_len( const UNICODE_STRING *name ) ...@@ -1866,7 +1866,7 @@ static inline int get_dos_prefix_len( const UNICODE_STRING *name )
* *
* Convert a file name from NT namespace to Unix namespace. * Convert a file name from NT namespace to Unix namespace.
* *
* If disposition is not FILE_OPEN or FILE_OVERWRITTE, the last path * If disposition is not FILE_OPEN or FILE_OVERWRITE, the last path
* element doesn't have to exist; in that case STATUS_NO_SUCH_FILE is * element doesn't have to exist; in that case STATUS_NO_SUCH_FILE is
* returned, but the unix name is still filled in properly. * returned, but the unix name is still filled in properly.
*/ */
......
...@@ -428,7 +428,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path, ...@@ -428,7 +428,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
/****************************************************************** /******************************************************************
* RtlDosSearchPath_U * RtlDosSearchPath_U
* *
* Searchs a file of name 'name' into a ';' separated list of paths * Searches a file of name 'name' into a ';' separated list of paths
* (stored in paths) * (stored in paths)
* Doesn't seem to search elsewhere than the paths list * Doesn't seem to search elsewhere than the paths list
* Stores the result in buffer (file_part will point to the position * Stores the result in buffer (file_part will point to the position
......
...@@ -1126,8 +1126,8 @@ static NTSTATUS RTL_GetKeyHandle(ULONG RelativeTo, PCWSTR Path, PHANDLE handle) ...@@ -1126,8 +1126,8 @@ static NTSTATUS RTL_GetKeyHandle(ULONG RelativeTo, PCWSTR Path, PHANDLE handle)
* RelativeTo [I] Registry path that Path refers to * RelativeTo [I] Registry path that Path refers to
* Path [I] Path to key * Path [I] Path to key
* QueryTable [I] Table of key values to query * QueryTable [I] Table of key values to query
* Context [I] Paremeter to pass to the application defined QueryRoutine function * Context [I] Parameter to pass to the application defined QueryRoutine function
* Environment [I] Optional parameter to use when performing expantion * Environment [I] Optional parameter to use when performing expansion
* *
* RETURNS * RETURNS
* STATUS_SUCCESS or an appropriate NTSTATUS error code. * STATUS_SUCCESS or an appropriate NTSTATUS error code.
......
...@@ -699,7 +699,7 @@ FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY *export ...@@ -699,7 +699,7 @@ FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY *export
if (!check_from_module( debug_from_snoop_includelist, debug_from_snoop_excludelist, user )) if (!check_from_module( debug_from_snoop_includelist, debug_from_snoop_excludelist, user ))
return origfun; /* the calling module was explicitly excluded */ return origfun; /* the calling module was explicitly excluded */
if (!*(LPBYTE)origfun) /* 0x00 is an imposs. opcode, poss. dataref. */ if (!*(LPBYTE)origfun) /* 0x00 is an impossible opcode, possible dataref. */
return origfun; return origfun;
sec = RtlImageRvaToSection( RtlImageNtHeader(hmod), hmod, (char *)origfun - (char *)hmod ); sec = RtlImageRvaToSection( RtlImageNtHeader(hmod), hmod, (char *)origfun - (char *)hmod );
......
...@@ -1079,7 +1079,7 @@ static NTSTATUS wait_on(HANDLE hDevice, int fd, HANDLE hEvent, DWORD* events) ...@@ -1079,7 +1079,7 @@ static NTSTATUS wait_on(HANDLE hDevice, int fd, HANDLE hEvent, DWORD* events)
(status = get_modem_status(fd, &commio->mstat))) (status = get_modem_status(fd, &commio->mstat)))
goto out_now; goto out_now;
/* We might have received something or the TX bufffer is delivered */ /* We might have received something or the TX buffer is delivered */
*events = check_events(fd, commio->evtmask, *events = check_events(fd, commio->evtmask,
&commio->irq_info, &commio->irq_info, &commio->irq_info, &commio->irq_info,
commio->mstat, commio->mstat); commio->mstat, commio->mstat);
......
...@@ -303,7 +303,7 @@ static void test_NtIntAtom(void) ...@@ -303,7 +303,7 @@ static void test_NtIntAtom(void)
if (!res) if (!res)
{ {
/* According to the kernel32 functions, integer atoms are only allowd from /* According to the kernel32 functions, integer atoms are only allowed from
* 0x0001 to 0xbfff and not 0xc000 to 0xffff, which is correct */ * 0x0001 to 0xbfff and not 0xc000 to 0xffff, which is correct */
res = pRtlAddAtomToAtomTable(AtomTable, (PWSTR)0, &testAtom); res = pRtlAddAtomToAtomTable(AtomTable, (PWSTR)0, &testAtom);
ok(res == STATUS_INVALID_PARAMETER, "Didn't get expected result from adding 0 int atom, retval: %x\n", res); ok(res == STATUS_INVALID_PARAMETER, "Didn't get expected result from adding 0 int atom, retval: %x\n", res);
......
...@@ -214,7 +214,7 @@ static void testExpand(void) ...@@ -214,7 +214,7 @@ static void testExpand(void)
* Interestingly enough, with a 8 WCHAR buffers, we get on 2k: * Interestingly enough, with a 8 WCHAR buffers, we get on 2k:
* helloIII * helloIII
* so it seems like strings overflowing the buffer are written * so it seems like strings overflowing the buffer are written
* (troncated) but the write cursor is not advanced :-/ * (truncated) but the write cursor is not advanced :-/
*/ */
{NULL, NULL} {NULL, NULL}
}; };
......
...@@ -418,7 +418,7 @@ static void test_directory(void) ...@@ -418,7 +418,7 @@ static void test_directory(void)
pRtlFreeUnicodeString(&str); pRtlFreeUnicodeString(&str);
InitializeObjectAttributes(&attr, &str, 0, dir, NULL); InitializeObjectAttributes(&attr, &str, 0, dir, NULL);
/* Test inavalid paths */ /* Test invalid paths */
pRtlCreateUnicodeStringFromAsciiz(&str, "\\om.c-mutant"); pRtlCreateUnicodeStringFromAsciiz(&str, "\\om.c-mutant");
status = pNtCreateMutant(&h, GENERIC_ALL, &attr, FALSE); status = pNtCreateMutant(&h, GENERIC_ALL, &attr, FALSE);
ok(status == STATUS_OBJECT_PATH_SYNTAX_BAD, ok(status == STATUS_OBJECT_PATH_SYNTAX_BAD,
......
...@@ -283,7 +283,7 @@ static void test_RtlQueryRegistryValues(void) ...@@ -283,7 +283,7 @@ static void test_RtlQueryRegistryValues(void)
8)DefaultLength Test Default Length with DefaultType = REG_SZ 8)DefaultLength Test Default Length with DefaultType = REG_SZ
9)DefaultLength Test Default Length with DefaultType = REG_MULTI_SZ 9)DefaultLength Test Default Length with DefaultType = REG_MULTI_SZ
10)DefaultLength Test Default Length with DefaultType = REG_EXPAND_SZ 10)DefaultLength Test Default Length with DefaultType = REG_EXPAND_SZ
11)DefaultData Test whether DefaultData is used while DefaltType = REG_NONE(shouldn't be) 11)DefaultData Test whether DefaultData is used while DefaultType = REG_NONE(shouldn't be)
12)Delete Try to delete value key 12)Delete Try to delete value key
*/ */
......
...@@ -647,7 +647,7 @@ static void test_RtlRandom(void) ...@@ -647,7 +647,7 @@ static void test_RtlRandom(void)
seed, seed_expected); seed, seed_expected);
/* /*
* Seed is not equal to result as with RtlUniform. To see more we * Seed is not equal to result as with RtlUniform. To see more we
* call RtlRandom aggain with seed set to 0: * call RtlRandom again with seed set to 0:
*/ */
seed = 0; seed = 0;
result_expected = 0x7fffffc3; result_expected = 0x7fffffc3;
...@@ -701,7 +701,7 @@ static void test_RtlRandom(void) ...@@ -701,7 +701,7 @@ static void test_RtlRandom(void)
* RtlRandom(&seed); * RtlRandom(&seed);
* *
* assigns to seed. Putting these two findings together leads to * assigns to seed. Putting these two findings together leads to
* the concluson that RtlRandom saves the value in some variable, * the conclusion that RtlRandom saves the value in some variable,
* like in the following algorithm: * like in the following algorithm:
* *
* result = saved_value; * result = saved_value;
......
...@@ -1282,7 +1282,7 @@ static const str2int_t str2int[] = { ...@@ -1282,7 +1282,7 @@ static const str2int_t str2int[] = {
{ 0, "0o7", 7, STATUS_SUCCESS}, /* one digit octal */ { 0, "0o7", 7, STATUS_SUCCESS}, /* one digit octal */
{ 0, "0o8", 0, STATUS_SUCCESS}, /* empty octal */ { 0, "0o8", 0, STATUS_SUCCESS}, /* empty octal */
{ 0, "0o", 0, STATUS_SUCCESS}, /* empty octal */ { 0, "0o", 0, STATUS_SUCCESS}, /* empty octal */
{ 0, "0d1011101100", 0, STATUS_SUCCESS}, /* explizit decimal with 0d */ { 0, "0d1011101100", 0, STATUS_SUCCESS}, /* explicit decimal with 0d */
{ 0, "x89abcdef", 0, STATUS_SUCCESS}, /* Hex with lower case digits a-f (x-notation) */ { 0, "x89abcdef", 0, STATUS_SUCCESS}, /* Hex with lower case digits a-f (x-notation) */
{ 0, "xFEDCBA00", 0, STATUS_SUCCESS}, /* Hex with upper case digits A-F (x-notation) */ { 0, "xFEDCBA00", 0, STATUS_SUCCESS}, /* Hex with upper case digits A-F (x-notation) */
{ 0, "-xFEDCBA00", 0, STATUS_SUCCESS}, /* Negative Hexadecimal (x-notation) */ { 0, "-xFEDCBA00", 0, STATUS_SUCCESS}, /* Negative Hexadecimal (x-notation) */
......
...@@ -859,7 +859,7 @@ static const str2long_t str2long[] = { ...@@ -859,7 +859,7 @@ static const str2long_t str2long[] = {
{ "0o7", 0 }, /* one digit octal */ { "0o7", 0 }, /* one digit octal */
{ "0o8", 0 }, /* empty octal */ { "0o8", 0 }, /* empty octal */
{ "0o", 0 }, /* empty octal */ { "0o", 0 }, /* empty octal */
{ "0d1011101100", 0 }, /* explizit decimal with 0d */ { "0d1011101100", 0 }, /* explicit decimal with 0d */
{ "x89abcdef", 0 }, /* Hex with lower case digits a-f (x-notation) */ { "x89abcdef", 0 }, /* Hex with lower case digits a-f (x-notation) */
{ "xFEDCBA00", 0 }, /* Hex with upper case digits A-F (x-notation) */ { "xFEDCBA00", 0 }, /* Hex with upper case digits A-F (x-notation) */
{ "-xFEDCBA00", 0 }, /* Negative Hexadecimal (x-notation) */ { "-xFEDCBA00", 0 }, /* Negative Hexadecimal (x-notation) */
......
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