Skip to content

Commit

Permalink
Assorted spelling fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdela authored and julliard committed Feb 10, 2014
1 parent ee49a5a commit 0f2bed5
Show file tree
Hide file tree
Showing 57 changed files with 117 additions and 117 deletions.
2 changes: 1 addition & 1 deletion dlls/advapi32/registry.c
Expand Up @@ -2716,7 +2716,7 @@ LSTATUS WINAPI RegLoadMUIStringW(HKEY hKey, LPCWSTR pwszValue, LPWSTR pwszBuffer
return ERROR_INVALID_PARAMETER;
}

/* Check for value existence and correctness of it's type, allocate a buffer and load it. */
/* Check for value existence and correctness of its type, allocate a buffer and load it. */
result = RegQueryValueExW(hKey, pwszValue, NULL, &dwValueType, NULL, &cbData);
if (result != ERROR_SUCCESS) goto cleanup;
if (!(dwValueType == REG_SZ || dwValueType == REG_EXPAND_SZ) || !cbData) {
Expand Down
2 changes: 1 addition & 1 deletion dlls/advapi32/tests/crypt.c
Expand Up @@ -931,7 +931,7 @@ static void test_set_provider_ex(void)
LocalFree(pszProvName);

reset:
/* Set the provider back to it's original */
/* Set the provider back to its original */
result = pCryptSetProviderExA(curProvName, PROV_RSA_FULL, NULL, CRYPT_MACHINE_DEFAULT);
ok(result, "%d\n", GetLastError());
LocalFree(curProvName);
Expand Down
2 changes: 1 addition & 1 deletion dlls/comctl32/comboex.c
Expand Up @@ -996,7 +996,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, CREATESTRUCTA const *cs)
}

/* Native version of ComboEx creates the ComboBox with DROPDOWNLIST */
/* specified. It then creates it's own version of the EDIT control */
/* specified. It then creates its own version of the EDIT control */
/* and makes the ComboBox the parent. This is because a normal */
/* DROPDOWNLIST does not have an EDIT control, but we need one. */
/* We also need to place the edit control at the proper location */
Expand Down
2 changes: 1 addition & 1 deletion dlls/comctl32/dpa.c
Expand Up @@ -467,7 +467,7 @@ BOOL WINAPI DPA_Grow (HDPA hdpa, INT nGrow)
*
* NOTES
* - If the 'hdpaNew' is a NULL-Pointer, a copy of the source pointer
* array will be created and it's handle (pointer) is returned.
* array will be created and its handle (pointer) is returned.
* - If 'hdpa' is a NULL-Pointer, the original implementation crashes,
* this implementation just returns NULL.
*/
Expand Down
2 changes: 1 addition & 1 deletion dlls/comctl32/toolbar.c
Expand Up @@ -4146,7 +4146,7 @@ TOOLBAR_Restore(TOOLBAR_INFO *infoPtr, const TBSAVEPARAMSW *lpSave)
{
/* separator */
nmtbr.tbButton.fsStyle = TBSTYLE_SEP;
/* when inserting separators, iBitmap controls it's size.
/* when inserting separators, iBitmap controls its size.
0 sets default size (width) */
nmtbr.tbButton.iBitmap = 0;
}
Expand Down
8 changes: 4 additions & 4 deletions dlls/dmime/performance.c
Expand Up @@ -277,7 +277,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_Init(IDirectMusicPerformance8
}

if (NULL != ppDirectMusic && NULL != *ppDirectMusic) {
/* app creates it's own dmusic object and gives it to performance */
/* app creates its own dmusic object and gives it to performance */
This->pDirectMusic = (IDirectMusic8*) *ppDirectMusic;
IDirectMusic8_AddRef(This->pDirectMusic);
} else {
Expand Down Expand Up @@ -1228,9 +1228,9 @@ HRESULT WINAPI create_dmperformance(REFIID lpcGUID, void **ppobj)
InitializeCriticalSection(&obj->safe);
obj->safe.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectMusicPerformance8Impl*->safe");

obj->rtLatencyTime = 100; /* 100ms TO FIX */
obj->dwBumperLength = 50; /* 50ms default */
obj->dwPrepareTime = 1000; /* 1000ms default */
obj->rtLatencyTime = 100; /* 100 ms TO FIX */
obj->dwBumperLength = 50; /* 50 ms default */
obj->dwPrepareTime = 1000; /* 1000 ms default */
return IDirectMusicPerformance8Impl_QueryInterface(&obj->IDirectMusicPerformance8_iface,
lpcGUID, ppobj);
}
4 changes: 2 additions & 2 deletions dlls/gameux/gameexplorer.c
Expand Up @@ -530,7 +530,7 @@ static HRESULT GAMEUX_RemoveRegistryRecord(GUID* pInstanceID)
* sGDFBinaryPath [I] path to binary containing GDF file in
* resources
* sGameInstallDirectory [I] path to directory, where game installed
* it's files.
* its files.
* installScope [I] scope of game installation
* pInstanceID [I/O] pointer to game instance identifier.
* If pointing to GUID_NULL, then new
Expand Down Expand Up @@ -704,7 +704,7 @@ static HRESULT GAMEUX_UpdateGame(LPGUID InstanceID) {
{
WCHAR *lpGameInstallDirectory = NULL;

/* game found, it's registry path is in lpRegistryPath and install
/* game found, its registry path is in lpRegistryPath and install
* scope in installScope */
TRACE("game found in registry (path %s), updating\n", debugstr_w(lpRegistryPath));

Expand Down
2 changes: 1 addition & 1 deletion dlls/gameux/gamestatistics.c
Expand Up @@ -387,7 +387,7 @@ static HRESULT GAMEUX_getAppIdFromGDFPath(
hr = E_FAIL;

if(SUCCEEDED(hr))
/* game is registered, let's read it's application id from registry */
/* game is registered, let's read its application id from registry */
hr = GAMEUX_buildGameRegistryPath(installScope, &instanceId, &lpRegistryPath);

if(SUCCEEDED(hr)) {
Expand Down
2 changes: 1 addition & 1 deletion dlls/gameux/tests/gameexplorer.c
Expand Up @@ -363,7 +363,7 @@ static void _validateGameRegistryKey(int line,
if(SUCCEEDED(hr))
{
if(presenceExpected)
/* if the key exists and we expected it, let's verify it's content */
/* if the key exists and we expected it, let's verify its content */
_validateGameRegistryValues(line, hKey, lpRegistryPath, gameApplicationId, gameExePath, gameExeName);

RegCloseKey(hKey);
Expand Down
2 changes: 1 addition & 1 deletion dlls/gdi32/enhmetafile.c
Expand Up @@ -2230,7 +2230,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
* This function behaves differently in Win9x and WinNT.
*
* In WinNT, the DC's world transform is updated as the EMF changes
* the Window/Viewport Extent and Origin or it's world transform.
* the Window/Viewport Extent and Origin or its world transform.
* The actual Window/Viewport Extent and Origin are left untouched.
*
* In Win9x, the DC is left untouched, and PlayEnhMetaFileRecord
Expand Down
2 changes: 1 addition & 1 deletion dlls/jscript/regexp.c
Expand Up @@ -890,7 +890,7 @@ ProcessOp(CompilerState *state, REOpData *opData, RENode **operandStack,

/*
* Hack two bits in CompilerState.flags, for use within FindParenCount to flag
* its being on the stack, and to propagate errors to its callers.
* it being on the stack, and to propagate errors to its callers.
*/
#define JSREG_FIND_PAREN_COUNT 0x8000
#define JSREG_FIND_PAREN_ERROR 0x4000
Expand Down
12 changes: 6 additions & 6 deletions dlls/kernel32/tests/alloc.c
Expand Up @@ -93,7 +93,7 @@ static void test_Heap(void)
error=TRUE;
}
}
ok(!error,"HeapAlloc should have zeroed out it's allocated memory\n");
ok(!error,"HeapAlloc should have zeroed out its allocated memory\n");
}

/* Check that HeapAlloc returns NULL when requested way too much memory */
Expand All @@ -114,7 +114,7 @@ static void test_Heap(void)
error=TRUE;
}
}
ok(!error,"HeapReAlloc should have zeroed out it's allocated memory\n");
ok(!error,"HeapReAlloc should have zeroed out its allocated memory\n");
}

/* Check that HeapRealloc honours HEAP_REALLOC_IN_PLACE_ONLY */
Expand Down Expand Up @@ -195,7 +195,7 @@ static void test_Global(void)
error=TRUE;
}
}
ok(!error,"GlobalAlloc should have zeroed out it's allocated memory\n");
ok(!error,"GlobalAlloc should have zeroed out its allocated memory\n");
}
}
/* Check that GlobalReAlloc works */
Expand All @@ -222,7 +222,7 @@ static void test_Global(void)
error=TRUE;
}
}
ok(!error,"GlobalReAlloc should have zeroed out it's allocated memory\n");
ok(!error,"GlobalReAlloc should have zeroed out its allocated memory\n");

/* Check that GlobalHandle works */
mem2b=GlobalHandle(mem2ptr);
Expand Down Expand Up @@ -287,7 +287,7 @@ static void test_Local(void)
error=TRUE;
}
}
ok(!error,"LocalAlloc should have zeroed out it's allocated memory\n");
ok(!error,"LocalAlloc should have zeroed out its allocated memory\n");
SetLastError(0);
error=LocalUnlock(mem2);
ok(!error && GetLastError()==NO_ERROR,
Expand Down Expand Up @@ -315,7 +315,7 @@ static void test_Local(void)
error=TRUE;
}
}
ok(!error,"LocalReAlloc should have zeroed out it's allocated memory\n");
ok(!error,"LocalReAlloc should have zeroed out its allocated memory\n");
/* Check that LocalHandle works */
mem2b=LocalHandle(mem2ptr);
ok(mem2b==mem2a,"LocalHandle didn't return the correct memory handle\n");
Expand Down
2 changes: 1 addition & 1 deletion dlls/kernel32/tests/path.c
Expand Up @@ -308,7 +308,7 @@ static void test_setdir(CHAR *olddir,CHAR *newdir,
"%s: SetCurrentDirectory did not change the directory, though it passed\n",
errstr);
ok(SetCurrentDirectoryA(olddir),
"%s: Couldn't set directory to it's original value\n",errstr);
"%s: Couldn't set directory to its original value\n",errstr);
} else {
/* else thest that it fails correctly */
chklen=lstrlenA(olddir);
Expand Down
10 changes: 5 additions & 5 deletions dlls/ntdll/sync.c
Expand Up @@ -1412,11 +1412,11 @@ DWORD WINAPI RtlRunOnceExecuteOnce( RTL_RUN_ONCE *once, PRTL_RUN_ONCE_INIT_FN fu
* [0, >=1, >=1] above we cannot add additional waiting threads to the
* shared access queue - it wouldn't be possible to distinguish waiting
* threads and those that are still inside. To solve this problem the lock
* uses the following approach: A thread that isn't able to allocate a
* uses the following approach: a thread that isn't able to allocate a
* shared lock just uses the exclusive queue instead. As soon as the thread
* is woken up it is in the state [1, >=1, >=0]. In this state its again
* is woken up it is in the state [1, >=1, >=0]. In this state it's again
* possible to use the shared access queue. The thread atomically moves
* itself to the shared access queue and releases the exclusive lock, such
* itself to the shared access queue and releases the exclusive lock, so
* that the "real" exclusive access threads have a chance. As soon as they
* are all ready the shared access threads are processed.
*/
Expand Down Expand Up @@ -1449,7 +1449,7 @@ static inline unsigned int srwlock_lock_exclusive( unsigned int *dest, int incr
/* Atomically modifies the value of *dest by adding incr. If the shared
* queue is empty and there are threads waiting for exclusive access, then
* sets the mark SRWLOCK_MASK_IN_EXCLUSIVE to signal other threads that
* they are allowed to use again the shared queue counter. */
* they are allowed again to use the shared queue counter. */
for (val = *dest;; val = tmp)
{
tmp = val + incr;
Expand Down Expand Up @@ -1484,7 +1484,7 @@ static inline unsigned int srwlock_unlock_exclusive( unsigned int *dest, int inc
static inline void srwlock_leave_exclusive( RTL_SRWLOCK *lock, unsigned int val )
{
/* Used when a thread leaves an exclusive section. If there are other
* exclusive access threads they are processed first, afterwards process
* exclusive access threads they are processed first, followed by
* the shared waiters. */
if (val & SRWLOCK_MASK_EXCLUSIVE_QUEUE)
NtReleaseKeyedEvent( keyed_event, srwlock_key_exclusive(lock), FALSE, NULL );
Expand Down
2 changes: 1 addition & 1 deletion dlls/ntdll/tests/info.c
Expand Up @@ -1726,7 +1726,7 @@ START_TEST(info)
trace("Starting test_process_debug_flags()\n");
test_query_process_debug_flags(argc, argv);

/* belongs into it's own file */
/* belongs to its own file */
trace("Starting test_readvirtualmemory()\n");
test_readvirtualmemory();

Expand Down
2 changes: 1 addition & 1 deletion dlls/ole32/compositemoniker.c
Expand Up @@ -37,7 +37,7 @@

WINE_DEFAULT_DEBUG_CHANNEL(ole);

#define BLOCK_TAB_SIZE 5 /* represent the first size table and it's increment block size */
#define BLOCK_TAB_SIZE 5 /* represent the first size table and its increment block size */

/* CompositeMoniker data structure */
typedef struct CompositeMonikerImpl{
Expand Down
6 changes: 3 additions & 3 deletions dlls/ole32/ole2.c
Expand Up @@ -56,7 +56,7 @@ WINE_DECLARE_DEBUG_CHANNEL(accel);

/******************************************************************************
* These are static/global variables and internal data structures that the
* OLE module uses to maintain it's state.
* OLE module uses to maintain its state.
*/
typedef struct tagTrackerWindowInfo
{
Expand Down Expand Up @@ -1332,7 +1332,7 @@ HRESULT WINAPI OleLoad(

if (SUCCEEDED(hres) && pClientSite)
/*
* Inform the new object of it's client site.
* Inform the new object of its client site.
*/
hres = IOleObject_SetClientSite(pOleObject, pClientSite);

Expand Down Expand Up @@ -2441,7 +2441,7 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)

/*
* If the source told us that we should cancel, fool the drop
* target by telling it that the mouse left it's window.
* target by telling it that the mouse left its window.
* Also set the drop effect to "NONE" in case the application
* ignores the result of DoDragDrop.
*/
Expand Down
4 changes: 2 additions & 2 deletions dlls/opencl/opencl.c
Expand Up @@ -173,7 +173,7 @@ cl_context WINAPI wine_clCreateContext(const cl_context_properties * properties,
/* FIXME: The CONTEXT_CALLBACK structure is currently leaked.
* Pointers to callback redirectors should be remembered and free()d when the context is destroyed.
* The problem is determining when a context is being destroyed. clReleaseContext only decrements
* the use count for a context, it's destruction can come much later and therefore there is a risk
* the use count for a context, its destruction can come much later and therefore there is a risk
* that the callback could be invoked after the user_data memory has been free()d.
*/
ccb = HeapAlloc(GetProcessHeap(), 0, sizeof(CONTEXT_CALLBACK));
Expand All @@ -194,7 +194,7 @@ cl_context WINAPI wine_clCreateContextFromType(const cl_context_properties * pro
/* FIXME: The CONTEXT_CALLBACK structure is currently leaked.
* Pointers to callback redirectors should be remembered and free()d when the context is destroyed.
* The problem is determining when a context is being destroyed. clReleaseContext only decrements
* the use count for a context, it's destruction can come much later and therefore there is a risk
* the use count for a context, its destruction can come much later and therefore there is a risk
* that the callback could be invoked after the user_data memory has been free()d.
*/
ccb = HeapAlloc(GetProcessHeap(), 0, sizeof(CONTEXT_CALLBACK));
Expand Down
4 changes: 2 additions & 2 deletions dlls/quartz/pin.c
Expand Up @@ -265,7 +265,7 @@ HRESULT WINAPI PullPin_ReceiveConnection(IPin * iface, IPin * pReceivePin, const
ALLOCATOR_PROPERTIES props;

props.cBuffers = 3;
props.cbBuffer = 64 * 1024; /* 64k bytes */
props.cbBuffer = 64 * 1024; /* 64 KB */
props.cbAlign = 1;
props.cbPrefix = 0;

Expand Down Expand Up @@ -598,7 +598,7 @@ static HRESULT PullPin_InitProcessing(PullPin * This)
assert(WaitForSingleObject(This->thread_sleepy, 0) == WAIT_TIMEOUT);
This->state = Req_Sleepy;

/* AddRef the filter to make sure it and it's pins will be around
/* AddRef the filter to make sure it and its pins will be around
* as long as the thread */
IBaseFilter_AddRef(This->pin.pinInfo.pFilter);

Expand Down
2 changes: 1 addition & 1 deletion dlls/riched20/table.c
Expand Up @@ -34,7 +34,7 @@
*
* Richedit version 4.1:
* Tables are implemented such that cells can contain multiple paragraphs,
* each with it's own paragraph format, and cells may even contain tables
* each with its own paragraph format, and cells may even contain tables
* nested within the cell.
*
* There is also a paragraph at the start of each table row that contains
Expand Down
10 changes: 5 additions & 5 deletions dlls/rsaenh/mpi.c
Expand Up @@ -1387,7 +1387,7 @@ static int mp_lshd (mp_int * a, int b)
{
int x, res;

/* if its less than zero return */
/* if it's less than zero return */
if (b <= 0) {
return MP_OKAY;
}
Expand Down Expand Up @@ -1624,7 +1624,7 @@ static int mp_div (const mp_int * a, const mp_int * b, mp_int * c, mp_int * d)
norm = 0;
}

/* note hac does 0 based, so if used==5 then its 0,1,2,3,4, e.g. use 4 */
/* note hac does 0 based, so if used==5 then it's 0,1,2,3,4, e.g. use 4 */
n = x.used - 1;
t = y.used - 1;

Expand Down Expand Up @@ -2536,7 +2536,7 @@ int mp_invmod_slow (const mp_int * a, mp_int * b, mp_int * c)
goto __ERR;
}

/* if its too low */
/* if it's too low */
while (mp_cmp_d(&C, 0) == MP_LT) {
if ((res = mp_add(&C, b, &C)) != MP_OKAY) {
goto __ERR;
Expand Down Expand Up @@ -2821,13 +2821,13 @@ int mp_lcm (const mp_int * a, const mp_int * b, mp_int * c)

/* divide the smallest by the GCD */
if (mp_cmp_mag(a, b) == MP_LT) {
/* store quotient in t2 such that t2 * b is the LCM */
/* store quotient in t2 so that t2 * b is the LCM */
if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) {
goto __T;
}
res = mp_mul(b, &t2, c);
} else {
/* store quotient in t2 such that t2 * a is the LCM */
/* store quotient in t2 so that t2 * a is the LCM */
if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) {
goto __T;
}
Expand Down
4 changes: 2 additions & 2 deletions dlls/rsaenh/tests/rsaenh.c
Expand Up @@ -188,8 +188,8 @@ static BOOL init_aes_environment(void)
hProv = (HCRYPTPROV)INVALID_HANDLE_VALUE;

/* we are using NULL as provider name for RSA_AES provider as the provider
* names are different in Windows XP and Vista. Its different as to what
* its defined in the SDK on Windows XP.
* names are different in Windows XP and Vista. It's different to what
* is defined in the SDK on Windows XP.
* This provider is available on Windows XP, Windows 2003 and Vista. */

result = CryptAcquireContextA(&hProv, szContainer, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT);
Expand Down
2 changes: 1 addition & 1 deletion dlls/shdocvw/tests/shortcut.c
Expand Up @@ -206,7 +206,7 @@ static void test_ShortcutFolder(void) {
IShellFolder_Release(pWineTestFolder);
if (FAILED(hr)) goto cleanup;

/* The resulting folder object has the FolderShortcut CLSID, instead of it's own. */
/* The resulting folder object has the FolderShortcut CLSID, instead of its own. */
hr = IPersistFolder3_GetClassID(pWineTestPersistFolder, &clsid);
ok (SUCCEEDED(hr), "IPersist::GetClassID failed! hr = %08x\n", hr);
ok (IsEqualCLSID(&CLSID_FolderShortcut, &clsid), "GetClassId returned wrong CLSID!\n");
Expand Down
4 changes: 2 additions & 2 deletions dlls/shell32/brsfolder.c
Expand Up @@ -313,7 +313,7 @@ static void GetNormalAndSelectedIcons(LPITEMIDLIST lpifq, LPTVITEMW lpTV_ITEM)
/******************************************************************************
* GetName [Internal]
*
* Query a shell folder for the display name of one of it's children
* Query a shell folder for the display name of one of its children
*
* PARAMS
* lpsf [I] IShellFolder interface of the folder to be queried.
Expand Down Expand Up @@ -901,7 +901,7 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
if (_ILIsEqualSimple(pItemData->lpi, pidlCurrent)) {
pidlCurrent = ILGetNext(pidlCurrent);
if (!_ILIsEmpty(pidlCurrent)) {
/* Only expand current node and move on to it's first child,
/* Only expand current node and move on to its first child,
* if we didn't already reach the last SHITEMID */
SendMessageW(info->hwndTreeView, TVM_EXPAND, TVE_EXPAND, (LPARAM)item.hItem);
item.hItem = (HTREEITEM)SendMessageW(info->hwndTreeView, TVM_GETNEXTITEM, TVGN_CHILD,
Expand Down

0 comments on commit 0f2bed5

Please sign in to comment.