[PATCH] Fix some its vs it's typos

Nikolay Sivov nsivov at codeweavers.com
Sun Jul 31 01:19:29 CDT 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/cabinet/fdi.c                | 6 +++---
 dlls/ddraw/ddraw_private.h        | 2 +-
 dlls/ddraw/main.c                 | 2 +-
 dlls/ddraw/tests/d3d.c            | 2 +-
 dlls/ddraw/viewport.c             | 4 ++--
 dlls/dinput/device.c              | 2 +-
 dlls/dplayx/dplayx_global.c       | 2 +-
 dlls/dsound/sound3d.c             | 8 ++++----
 dlls/gdi32/enhmfdrv/objects.c     | 2 +-
 dlls/gdiplus/region.c             | 2 +-
 dlls/gdiplus/tests/font.c         | 2 +-
 dlls/krnl386.exe16/local.c        | 2 +-
 dlls/mmsystem.dll16/mmsystem.c    | 2 +-
 dlls/ntdll/sync.c                 | 2 +-
 dlls/ntdll/threadpool.c           | 2 +-
 dlls/quartz/avidec.c              | 2 +-
 dlls/shlwapi/url.c                | 2 +-
 dlls/wined3d/arb_program_shader.c | 4 ++--
 18 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index ae6aec8..fdff0bf 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -2582,7 +2582,7 @@ BOOL __cdecl FDICopy(
      * where all the cabinet files needed for decryption are simultaneously
      * available.  But presumably, the API is supposed to support cabinets which
      * are split across multiple CDROMS; we may need to change our implementation
-     * to strictly serialize it's file usage so that it opens only one cabinet
+     * to strictly serialize its file usage so that it opens only one cabinet
      * at a time.  Some experimentation with Windows is needed to figure out the
      * precise semantics required.  The relevant code is here and in fdi_decomp().
      */
@@ -2613,8 +2613,8 @@ BOOL __cdecl FDICopy(
        * if we imagine parallelized access to the FDICopy API.
        *
        * The current implementation punts -- it just returns the previous cabinet and
-       * it's info from the header of this cabinet.  This provides the right answer in
-       * 95% of the cases; its worth checking if Microsoft cuts the same corner before
+       * its info from the header of this cabinet.  This provides the right answer in
+       * 95% of the cases; it's worth checking if Microsoft cuts the same corner before
        * we "fix" it.
        */
       ZeroMemory(&fdin, sizeof(FDINOTIFICATION));
diff --git a/dlls/ddraw/ddraw_private.h b/dlls/ddraw/ddraw_private.h
index b3b171a..667dcd0 100644
--- a/dlls/ddraw/ddraw_private.h
+++ b/dlls/ddraw/ddraw_private.h
@@ -180,7 +180,7 @@ struct ddraw_surface
      */
 #define MAX_COMPLEX_ATTACHED 6
     struct ddraw_surface *complex_array[MAX_COMPLEX_ATTACHED];
-    /* You can't traverse the tree upwards. Only a flag for Surface::Release because its needed there,
+    /* You can't traverse the tree upwards. Only a flag for Surface::Release because it's needed there,
      * but no pointer to prevent temptations to traverse it in the wrong direction.
      */
     BOOL                    is_complex_root;
diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index 0f7398b..bb9e37f 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -772,7 +772,7 @@ HRESULT WINAPI DllUnregisterServer(void)
  *
  * Params:
  *  surf: The enumerated surface
- *  desc: it's description
+ *  desc: its description
  *  context: Pointer to the ddraw impl
  *
  * Returns:
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index d877020..8c82e4c 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -415,7 +415,7 @@ static void StateTest( void )
 {
     HRESULT rc;
 
-    /* The msdn says its undocumented, does it return an error too? */
+    /* The msdn says it's undocumented, does it return an error too? */
     rc = IDirect3DDevice7_SetRenderState(lpD3DDevice, D3DRENDERSTATE_ZVISIBLE, TRUE);
     ok(rc == D3D_OK, "IDirect3DDevice7_SetRenderState(D3DRENDERSTATE_ZVISIBLE, TRUE) returned %08x\n", rc);
     rc = IDirect3DDevice7_SetRenderState(lpD3DDevice, D3DRENDERSTATE_ZVISIBLE, FALSE);
diff --git a/dlls/ddraw/viewport.c b/dlls/ddraw/viewport.c
index 154f9aa..000158d 100644
--- a/dlls/ddraw/viewport.c
+++ b/dlls/ddraw/viewport.c
@@ -480,7 +480,7 @@ static HRESULT WINAPI d3d_viewport_TransformVertices(IDirect3DViewport3 *iface,
     }
 
     /* According to the d3d test, the offscreen flag is set only
-     * if exactly one vertex is transformed. Its not documented,
+     * if exactly one vertex is transformed. It's not documented,
      * but the test shows that the lpOffscreen flag is set to the
      * flag combination of clipping planes that clips the vertex.
      *
@@ -580,7 +580,7 @@ static HRESULT WINAPI d3d_viewport_GetBackground(IDirect3DViewport3 *iface,
 /*****************************************************************************
  * IDirect3DViewport3::SetBackgroundDepth
  *
- * Sets a surface that represents the background depth. It's contents are
+ * Sets a surface that represents the background depth. Its contents are
  * used to set the depth buffer in IDirect3DViewport3::Clear
  *
  * Params:
diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index 0b08e15..db4507d 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -526,7 +526,7 @@ failed:
     return DIERR_OUTOFMEMORY;
 }
 
-/* find an object by it's offset in a data format */
+/* find an object by its offset in a data format */
 static int offset_to_object(const DataFormat *df, int offset)
 {
     int i;
diff --git a/dlls/dplayx/dplayx_global.c b/dlls/dplayx/dplayx_global.c
index 8351f66..14c53a0 100644
--- a/dlls/dplayx/dplayx_global.c
+++ b/dlls/dplayx/dplayx_global.c
@@ -182,7 +182,7 @@ static void DPLAYX_InitializeLobbyDataEntry( LPDPLAYX_LOBBYDATA lpData )
 }
 
 /* NOTE: This must be called with the semaphore acquired.
- * TRUE/FALSE with a pointer to it's data returned. Pointer data is
+ * TRUE/FALSE with a pointer to its data returned. Pointer data is
  * is only valid if TRUE is returned.
  */
 static BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData )
diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c
index 840ab93..b416cdc 100644
--- a/dlls/dsound/sound3d.c
+++ b/dlls/dsound/sound3d.c
@@ -294,12 +294,12 @@ if(0)
 	           dsb->ds3db_ds3db.vVelocity.z == dsb->device->ds3dl.vVelocity.z))
 	{
 		/* calculate length of ds3db_ds3db.vVelocity component which causes Doppler Effect
-		   NOTE: if buffer moves TOWARDS the listener, it's velocity component is NEGATIVE
-		         if buffer moves AWAY from listener, it's velocity component is POSITIVE */
+		   NOTE: if buffer moves TOWARDS the listener, its velocity component is NEGATIVE
+		         if buffer moves AWAY from listener, its velocity component is POSITIVE */
 		flBufferVel = ProjectVector(&dsb->ds3db_ds3db.vVelocity, &vDistance);
 		/* calculate length of ds3dl.vVelocity component which causes Doppler Effect
-		   NOTE: if listener moves TOWARDS the buffer, it's velocity component is POSITIVE
-		         if listener moves AWAY from buffer, it's velocity component is NEGATIVE */
+		   NOTE: if listener moves TOWARDS the buffer, its velocity component is POSITIVE
+		         if listener moves AWAY from buffer, its velocity component is NEGATIVE */
 		flListenerVel = ProjectVector(&dsb->device->ds3dl.vVelocity, &vDistance);
 		/* formula taken from Gianicoli D.: Physics, 4th edition: */
 		/* FIXME: replace dsb->freq with appropriate frequency ! */
diff --git a/dlls/gdi32/enhmfdrv/objects.c b/dlls/gdi32/enhmfdrv/objects.c
index 9bf79e4..c5b9682 100644
--- a/dlls/gdi32/enhmfdrv/objects.c
+++ b/dlls/gdi32/enhmfdrv/objects.c
@@ -161,7 +161,7 @@ DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush )
             emr->emr.iType = EMR_CREATEMONOBRUSH;
             usage = DIB_PAL_MONO;
             /* FIXME: There is an extra DWORD written by native before the BMI.
-             *        Not sure what its meant to contain.
+             *        Not sure what it's meant to contain.
              */
             emr->offBmi = sizeof( EMRCREATEDIBPATTERNBRUSHPT ) + sizeof(DWORD);
             emr->cbBmi = sizeof( BITMAPINFOHEADER );
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index 7d909d2..35fef8b 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -821,7 +821,7 @@ static void write_element(const region_element* element, DWORD *buffer,
  *  their code followed by a second header for the path followed by the actual
  *  path data. Followed by the flags for each point. The pathheader contains
  *  the size of the data to follow, a version number again, followed by a count
- *  of how many points, and any special flags which may apply. 0x4000 means its
+ *  of how many points, and any special flags which may apply. 0x4000 means it's
  *  a path of shorts instead of FLOAT.
  *
  *  Combining Ops are stored in reverse order from when they were constructed;
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index 1b442cc..827ef2a 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -74,7 +74,7 @@ static void test_createfont(void)
     stat = GdipDeleteFontFamily(fontfamily2);
     expect(Ok, stat);
 
-    /* Test to see if returned size is based on unit (its not) */
+    /* Test to see if returned size is based on unit (it's not) */
     GdipGetFontSize(font, &size);
     ok (size == 12, "Expected 12, got %f\n", size);
     GdipDeleteFont(font);
diff --git a/dlls/krnl386.exe16/local.c b/dlls/krnl386.exe16/local.c
index a39316a..46a336e 100644
--- a/dlls/krnl386.exe16/local.c
+++ b/dlls/krnl386.exe16/local.c
@@ -814,7 +814,7 @@ static UINT16 LOCAL_Compact( HANDLE16 ds, UINT16 minfree, UINT16 flags )
                     size = pFinalArena->size;
                     LOCAL_RemoveFreeBlock(ptr, finalarena);
                     LOCAL_ShrinkArena( ds, finalarena, movesize );
-                    /* Copy the arena to it's new location */
+                    /* Copy the arena to its new location */
                     memcpy((char *)pFinalArena + ARENA_HEADER_SIZE,
                            (char *)pMoveArena + ARENA_HEADER_SIZE,
                            movesize - ARENA_HEADER_SIZE );
diff --git a/dlls/mmsystem.dll16/mmsystem.c b/dlls/mmsystem.dll16/mmsystem.c
index d90240d..083ec2d 100644
--- a/dlls/mmsystem.dll16/mmsystem.c
+++ b/dlls/mmsystem.dll16/mmsystem.c
@@ -1694,7 +1694,7 @@ DWORD WINAPI waveInMessage16(HWAVEIN16 hWaveIn, UINT16 uMessage,
 /**************************************************************************
  * 				mmTaskCreate		[MMSYSTEM.900]
  *
- * Creates a 16 bit MM task. It's entry point is lpFunc, and it should be
+ * Creates a 16 bit MM task. Its entry point is lpFunc, and it should be
  * called upon creation with dwPmt as parameter.
  */
 HINSTANCE16 WINAPI mmTaskCreate16(SEGPTR spProc, HINSTANCE16 *lphMmTask, DWORD dwPmt)
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index bef85a8..c179760 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -1537,7 +1537,7 @@ DWORD WINAPI RtlRunOnceExecuteOnce( RTL_RUN_ONCE *once, PRTL_RUN_ONCE_INIT_FN fu
  * purposes. The following table lists all possible states the lock can be
  * in, notation: [X, #exclusive, #shared]:
  *
- * [0,   0,   N] -> locked by N shared access threads, if N=0 its unlocked
+ * [0,   0,   N] -> locked by N shared access threads, if N=0 it's unlocked
  * [0, >=1, >=1] -> threads are requesting exclusive locks, but there are
  * still shared access threads inside. #shared should not be incremented
  * anymore!
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index 15510e2..799245c 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -1217,7 +1217,7 @@ static void CALLBACK timerqueue_thread_proc( void *param )
             timer->u.timer.timer_pending = FALSE;
             tp_object_submit( timer, FALSE );
 
-            /* Insert the timer back into the queue, except its marked for shutdown. */
+            /* Insert the timer back into the queue, except it's marked for shutdown. */
             if (timer->u.timer.period && !timer->shutdown)
             {
                 timer->u.timer.timeout += (ULONGLONG)timer->u.timer.period * 10000;
diff --git a/dlls/quartz/avidec.c b/dlls/quartz/avidec.c
index 7e29318..c9ca760 100644
--- a/dlls/quartz/avidec.c
+++ b/dlls/quartz/avidec.c
@@ -172,7 +172,7 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
     if (res != ICERR_OK)
         ERR("Error occurred during the decompression (%x)\n", res);
 
-    /* Drop sample if its intended to be dropped */
+    /* Drop sample if it's intended to be dropped */
     if (flags & ICDECOMPRESS_HURRYUP) {
         hr = S_OK;
         goto error;
diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c
index ee93818..fe97fae 100644
--- a/dlls/shlwapi/url.c
+++ b/dlls/shlwapi/url.c
@@ -923,7 +923,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
     }
 
     if (ret == S_OK) {
-	/* Reuse mrelative as temp storage as its already allocated and not needed anymore */
+        /* Reuse mrelative as temp storage as it's already allocated and not needed anymore */
         if(*pcchCombined == 0)
             *pcchCombined = 1;
 	ret = UrlCanonicalizeW(preliminary, mrelative, pcchCombined, (dwFlags & ~URL_FILE_USE_PATHURL));
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 945abe5..c206745 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -1374,7 +1374,7 @@ static const char *shader_arb_get_modifier(const struct wined3d_shader_instructi
 
     mod = ins->dst[0].modifiers;
 
-    /* Silently ignore PARTIALPRECISION if its not supported */
+    /* Silently ignore PARTIALPRECISION if it's not supported */
     if(priv->target_version == ARB) mod &= ~WINED3DSPDM_PARTIALPRECISION;
 
     if(mod & WINED3DSPDM_MSAMPCENTROID)
@@ -7237,7 +7237,7 @@ static BOOL gen_yv12_read(struct wined3d_string_buffer *buffer, const struct arb
      *        |     0.5        |       0.5       |
      *
      * So it appears as if there are 4 chroma images, but in fact the odd rows
-     * in the chroma images are in the same row as the even ones. So its is
+     * in the chroma images are in the same row as the even ones. So it is
      * kinda tricky to read
      *
      * When reading from rectangle textures, keep in mind that the input y coordinates
-- 
2.8.1




More information about the wine-patches mailing list