Francois Gouget : windowscodecs/tests: Fix the spelling of a couple of variable names.

Alexandre Julliard julliard at winehq.org
Mon May 18 15:00:13 CDT 2020


Module: wine
Branch: master
Commit: fe2435c93f1400c5fbc360821fe8d1c977aaa762
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=fe2435c93f1400c5fbc360821fe8d1c977aaa762

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat May 16 12:18:08 2020 +0200

windowscodecs/tests: Fix the spelling of a couple of variable names.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/windowscodecs/tests/ddsformat.c  |  8 ++++----
 dlls/windowscodecs/tests/tiffformat.c | 12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dlls/windowscodecs/tests/ddsformat.c b/dlls/windowscodecs/tests/ddsformat.c
index 209d39f11f..bc22cc5072 100644
--- a/dlls/windowscodecs/tests/ddsformat.c
+++ b/dlls/windowscodecs/tests/ddsformat.c
@@ -234,16 +234,16 @@ static void test_dds_decoder_initialize(void)
 static void test_dds_decoder_global_properties(IWICBitmapDecoder *decoder)
 {
     HRESULT hr;
-    IWICPalette *pallette = NULL;
+    IWICPalette *palette = NULL;
     IWICMetadataQueryReader *metadata_reader = NULL;
     IWICBitmapSource *preview = NULL, *thumnail = NULL;
     IWICColorContext *color_context = NULL;
     UINT count;
 
-    hr = IWICImagingFactory_CreatePalette(factory, &pallette);
+    hr = IWICImagingFactory_CreatePalette(factory, &palette);
     ok (hr == S_OK, "CreatePalette failed, hr=%x\n", hr);
     if (hr == S_OK) {
-        hr = IWICBitmapDecoder_CopyPalette(decoder, pallette);
+        hr = IWICBitmapDecoder_CopyPalette(decoder, palette);
         ok(hr == WINCODEC_ERR_PALETTEUNAVAILABLE, "Expected hr=WINCODEC_ERR_PALETTEUNAVAILABLE, got %x\n", hr);
         hr = IWICBitmapDecoder_CopyPalette(decoder, NULL);
         ok(hr == WINCODEC_ERR_PALETTEUNAVAILABLE, "Expected hr=WINCODEC_ERR_PALETTEUNAVAILABLE, got %x\n", hr);
@@ -269,7 +269,7 @@ static void test_dds_decoder_global_properties(IWICBitmapDecoder *decoder)
     hr = IWICBitmapDecoder_GetThumbnail(decoder, NULL);
     ok (hr == WINCODEC_ERR_CODECNOTHUMBNAIL, "Expected hr=WINCODEC_ERR_CODECNOTHUMBNAIL, got %x\n", hr);
 
-    if (pallette) IWICPalette_Release(pallette);
+    if (palette) IWICPalette_Release(palette);
     if (metadata_reader) IWICMetadataQueryReader_Release(metadata_reader);
     if (preview) IWICBitmapSource_Release(preview);
     if (color_context) IWICColorContext_Release(color_context);
diff --git a/dlls/windowscodecs/tests/tiffformat.c b/dlls/windowscodecs/tests/tiffformat.c
index 4769b9c8d2..b9d60de8a1 100644
--- a/dlls/windowscodecs/tests/tiffformat.c
+++ b/dlls/windowscodecs/tests/tiffformat.c
@@ -402,7 +402,7 @@ static HRESULT create_decoder(const void *image_data, UINT image_size, IWICBitma
     return hr;
 }
 
-static HRESULT get_pixelformat_info(const GUID *format, UINT *bpp, UINT *channels, BOOL *trasparency)
+static HRESULT get_pixelformat_info(const GUID *format, UINT *bpp, UINT *channels, BOOL *transparency)
 {
     HRESULT hr;
     IWICComponentInfo *info;
@@ -415,7 +415,7 @@ static HRESULT get_pixelformat_info(const GUID *format, UINT *bpp, UINT *channel
         hr = IWICComponentInfo_QueryInterface(info, &IID_IWICPixelFormatInfo2, (void **)&formatinfo);
         if (hr == S_OK)
         {
-            hr = IWICPixelFormatInfo2_SupportsTransparency(formatinfo, trasparency);
+            hr = IWICPixelFormatInfo2_SupportsTransparency(formatinfo, transparency);
             ok(hr == S_OK, "SupportsTransparency error %#x\n", hr);
             IWICPixelFormatInfo2_Release(formatinfo);
         }
@@ -1093,7 +1093,7 @@ static void test_color_formats(void)
     IWICBitmapFrameDecode *frame;
     GUID format;
     UINT count, i, bpp, channels, ret;
-    BOOL trasparency;
+    BOOL transparency;
     struct IFD_entry *tag, *tag_photo = NULL, *tag_bps = NULL, *tag_samples = NULL, *tag_colormap = NULL;
     struct IFD_entry *tag_width = NULL, *tag_height = NULL, *tag_extra_samples = NULL;
     short *bps;
@@ -1236,12 +1236,12 @@ static void test_color_formats(void)
             i, td[i].photometric, td[i].samples, td[i].extra_samples, td[i].bps,
             wine_dbgstr_guid(td[i].data->format), wine_dbgstr_guid(&format));
 
-        trasparency = (td[i].photometric == 2 && td[i].samples == 4); /* for XP */
-        hr = get_pixelformat_info(&format, &bpp, &channels, &trasparency);
+        transparency = (td[i].photometric == 2 && td[i].samples == 4); /* for XP */
+        hr = get_pixelformat_info(&format, &bpp, &channels, &transparency);
         ok(hr == S_OK, "%u: get_pixelformat_bpp error %#x\n", i, hr);
         ok(bpp == td[i].data->bpp, "%u: expected %u, got %u\n", i, td[i].data->bpp, bpp);
         ok(channels == td[i].samples, "%u: expected %u, got %u\n", i, td[i].samples, channels);
-        ok(trasparency == (td[i].photometric == 2 && td[i].samples == 4), "%u: got %u\n", i, trasparency);
+        ok(transparency == (td[i].photometric == 2 && td[i].samples == 4), "%u: got %u\n", i, transparency);
 
         memset(pixels, 0, sizeof(pixels));
         hr = IWICBitmapFrameDecode_CopyPixels(frame, NULL, width_bytes(td[i].data->width, bpp), sizeof(pixels), pixels);




More information about the wine-cvs mailing list