diff --git a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h index 0818fa71c16..1a3919eaa30 100644 --- a/dlls/msvcrt/cppexcept.h +++ b/dlls/msvcrt/cppexcept.h @@ -26,7 +26,7 @@ typedef void (*vtable_ptr)(); -/* type_info object, see cpp.c for inplementation */ +/* type_info object, see cpp.c for implementation */ typedef struct __type_info { const vtable_ptr *vtable; diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c index 781f0684b71..c807209f9a7 100644 --- a/dlls/msvcrt/main.c +++ b/dlls/msvcrt/main.c @@ -124,7 +124,7 @@ void CDECL MSVCRT_I10_OUTPUT(void) { /* FIXME: This is probably data, not a function */ /* 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) */ } diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index 926a9cf3764..3da32d863b8 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -576,11 +576,11 @@ static void test_wcscpy_s(void) return; } - /* Test NULl Dest */ + /* Test NULL Dest */ ret = p_wcscpy_s(NULL, 18, szLongText); ok(ret == EINVAL, "p_wcscpy_s expect EINVAL got %d\n", ret); - /* Test NULl Source */ + /* Test NULL Source */ szDest[0] = 'A'; ret = p_wcscpy_s(szDest, 18, NULL); ok(ret == EINVAL, "expected EINVAL got %d\n", ret); diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index dfc2241409c..16991eb295d 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c @@ -516,7 +516,7 @@ static char* get_template_name(struct parsed_symbol* sym) * 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 * 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. */ static BOOL get_class(struct parsed_symbol* sym) @@ -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 */ static const char* get_extended_type(char c) diff --git a/dlls/mswsock/mswsock.c b/dlls/mswsock/mswsock.c index d2834052713..bdf4d3096cd 100644 --- a/dlls/mswsock/mswsock.c +++ b/dlls/mswsock/mswsock.c @@ -104,7 +104,7 @@ VOID WINAPI GetAcceptExSockaddrs( BOOL WINAPI TransmitFile( SOCKET hSocket, /* [in] Handle to a connected socket */ HANDLE hFile, /* [in] Handle to the open file that should be - transmited */ + transmitted */ DWORD nNumberOfBytesToWrite, /* [in] Number of file bytes to transmit */ DWORD nNumberOfBytesPerSend, /* [in] Size in bytes of each block of diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 4cec2d3bef4..ee4e1b25adc 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -1007,7 +1007,7 @@ static HRESULT WINAPI xmlnode_get_xml( { 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); if( ((char*)pContent)[0] == ' ') *xmlString = bstr_from_xmlChar(pContent+1); diff --git a/dlls/msxml3/pi.c b/dlls/msxml3/pi.c index 5fad22c6a50..f04affbefc2 100644 --- a/dlls/msxml3/pi.c +++ b/dlls/msxml3/pi.c @@ -206,7 +206,7 @@ static HRESULT WINAPI dom_pi_put_nodeValue( 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); if(hr == S_OK) { @@ -530,7 +530,7 @@ static HRESULT WINAPI dom_pi_put_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); if(hr == S_OK) { diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 00eb52acc22..9c6eb66d041 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -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_("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)); expect_eq(V_VT(&var), VT_BSTR, int, "%x"); expect_bstr_eq_and_free(V_BSTR(&var), "XSLPattern"); diff --git a/dlls/netapi32/ds.c b/dlls/netapi32/ds.c index 819dc23be3e..740ef5d377f 100644 --- a/dlls/netapi32/ds.c +++ b/dlls/netapi32/ds.c @@ -77,7 +77,7 @@ VOID WINAPI DsRoleFreeMemory(PVOID Buffer) * DsRoleGetPrimaryDomainInformation (NETAPI32.@) * * PARAMS - * lpServer [I] Pointer to UNICODE string with Computername + * lpServer [I] Pointer to UNICODE string with ComputerName * InfoLevel [I] Type of data to retrieve * Buffer [O] Pointer to to the requested data * diff --git a/dlls/netapi32/nbnamecache.h b/dlls/netapi32/nbnamecache.h index 987c6c4946b..b227ed641e6 100644 --- a/dlls/netapi32/nbnamecache.h +++ b/dlls/netapi32/nbnamecache.h @@ -45,7 +45,7 @@ typedef struct _NBNameCacheEntry /* Functions that create, manipulate, and destroy a name cache. Thread-safe, * 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 diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c index 1186572dab7..a47229cb0e0 100644 --- a/dlls/netapi32/nbt.c +++ b/dlls/netapi32/nbt.c @@ -46,7 +46,7 @@ * name. Although it allows sessions to be created with '*' as the calling * name, doing so results in timeouts for all receives, because the * 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 * NCBADDNAME to add to it, but doesn't actually register the name, or does * attempt to register it without being able to defend it. diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c index 9a4d5310e5e..1eb22d6d6a7 100644 --- a/dlls/netapi32/wksta.c +++ b/dlls/netapi32/wksta.c @@ -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 * 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 */ #define MAX_TRANSPORT_NAME MAX_INTERFACE_NAME_LEN diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 44cf615e3dd..2b53245a547 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -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. * - * 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 * returned, but the unix name is still filled in properly. */ diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c index 8730af37f23..d7be1839549 100644 --- a/dlls/ntdll/path.c +++ b/dlls/ntdll/path.c @@ -428,7 +428,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path, /****************************************************************** * 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) * Doesn't seem to search elsewhere than the paths list * Stores the result in buffer (file_part will point to the position diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c index 9d9de0e4eed..425ddf84890 100644 --- a/dlls/ntdll/reg.c +++ b/dlls/ntdll/reg.c @@ -1126,8 +1126,8 @@ static NTSTATUS RTL_GetKeyHandle(ULONG RelativeTo, PCWSTR Path, PHANDLE handle) * RelativeTo [I] Registry path that Path refers to * Path [I] Path to key * QueryTable [I] Table of key values to query - * Context [I] Paremeter to pass to the application defined QueryRoutine function - * Environment [I] Optional parameter to use when performing expantion + * Context [I] Parameter to pass to the application defined QueryRoutine function + * Environment [I] Optional parameter to use when performing expansion * * RETURNS * STATUS_SUCCESS or an appropriate NTSTATUS error code. diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index f9679a6e37d..a3031f28e3c 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -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 )) 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; sec = RtlImageRvaToSection( RtlImageNtHeader(hmod), hmod, (char *)origfun - (char *)hmod ); diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c index c54d70696e6..8155d67a285 100644 --- a/dlls/ntdll/serial.c +++ b/dlls/ntdll/serial.c @@ -1079,7 +1079,7 @@ static NTSTATUS wait_on(HANDLE hDevice, int fd, HANDLE hEvent, DWORD* events) (status = get_modem_status(fd, &commio->mstat))) 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, &commio->irq_info, &commio->irq_info, commio->mstat, commio->mstat); diff --git a/dlls/ntdll/tests/atom.c b/dlls/ntdll/tests/atom.c index 49bf48e47ac..87ea222a8f7 100644 --- a/dlls/ntdll/tests/atom.c +++ b/dlls/ntdll/tests/atom.c @@ -303,7 +303,7 @@ static void test_NtIntAtom(void) 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 */ 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); diff --git a/dlls/ntdll/tests/env.c b/dlls/ntdll/tests/env.c index d8229460bbf..3363e73484e 100644 --- a/dlls/ntdll/tests/env.c +++ b/dlls/ntdll/tests/env.c @@ -214,7 +214,7 @@ static void testExpand(void) * Interestingly enough, with a 8 WCHAR buffers, we get on 2k: * helloIII * 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} }; diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c index 0eacd202a93..d211ea00432 100644 --- a/dlls/ntdll/tests/om.c +++ b/dlls/ntdll/tests/om.c @@ -418,7 +418,7 @@ static void test_directory(void) pRtlFreeUnicodeString(&str); InitializeObjectAttributes(&attr, &str, 0, dir, NULL); - /* Test inavalid paths */ + /* Test invalid paths */ pRtlCreateUnicodeStringFromAsciiz(&str, "\\om.c-mutant"); status = pNtCreateMutant(&h, GENERIC_ALL, &attr, FALSE); ok(status == STATUS_OBJECT_PATH_SYNTAX_BAD, diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c index 14cc79f629f..94f2a0b6630 100644 --- a/dlls/ntdll/tests/reg.c +++ b/dlls/ntdll/tests/reg.c @@ -283,7 +283,7 @@ static void test_RtlQueryRegistryValues(void) 8)DefaultLength Test Default Length with DefaultType = REG_SZ 9)DefaultLength Test Default Length with DefaultType = REG_MULTI_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 */ diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c index 40d13fd9544..3fdb864a172 100644 --- a/dlls/ntdll/tests/rtl.c +++ b/dlls/ntdll/tests/rtl.c @@ -647,7 +647,7 @@ static void test_RtlRandom(void) seed, seed_expected); /* * 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; result_expected = 0x7fffffc3; @@ -701,7 +701,7 @@ static void test_RtlRandom(void) * RtlRandom(&seed); * * 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: * * result = saved_value; diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c index 61da443abfb..5239de07e04 100644 --- a/dlls/ntdll/tests/rtlstr.c +++ b/dlls/ntdll/tests/rtlstr.c @@ -1282,7 +1282,7 @@ static const str2int_t str2int[] = { { 0, "0o7", 7, STATUS_SUCCESS}, /* one digit octal */ { 0, "0o8", 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, "xFEDCBA00", 0, STATUS_SUCCESS}, /* Hex with upper case digits A-F (x-notation) */ { 0, "-xFEDCBA00", 0, STATUS_SUCCESS}, /* Negative Hexadecimal (x-notation) */ diff --git a/dlls/ntdll/tests/string.c b/dlls/ntdll/tests/string.c index ce5892a77fa..4a7a497b6a3 100644 --- a/dlls/ntdll/tests/string.c +++ b/dlls/ntdll/tests/string.c @@ -859,7 +859,7 @@ static const str2long_t str2long[] = { { "0o7", 0 }, /* one digit octal */ { "0o8", 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) */ { "xFEDCBA00", 0 }, /* Hex with upper case digits A-F (x-notation) */ { "-xFEDCBA00", 0 }, /* Negative Hexadecimal (x-notation) */