Jeff Smith : gdiplus/tests: Use wide-char string literal for mimetype.

Alexandre Julliard julliard at winehq.org
Thu Dec 10 16:05:29 CST 2020


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

Author: Jeff Smith <whydoubt at gmail.com>
Date:   Tue Dec  8 19:40:11 2020 -0600

gdiplus/tests: Use wide-char string literal for mimetype.

Signed-off-by: Jeff Smith <whydoubt at gmail.com>
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdiplus/tests/image.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index c1f3b126a79..2175c1748e0 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -537,7 +537,6 @@ static void test_SavingMultiPageTiff(void)
     static const CHAR filename2A[] = "2.tif";
     static const WCHAR filename1[] = L"1.tif";
     static const WCHAR filename2[] = L"2.tif";
-    static const WCHAR tiff_mimetype[] = { 'i','m','a','g','e','/','t','i','f','f',0 };
 
     params.Count = 1;
     params.Parameter[0].Guid = EncoderSaveFlag;
@@ -549,7 +548,7 @@ static void test_SavingMultiPageTiff(void)
     expect(Ok, stat);
     stat = GdipCreateBitmapFromScan0(2 * WIDTH, 2 * HEIGHT, 0, PixelFormat24bppRGB, NULL, &bm2);
     expect(Ok, stat);
-    result = get_encoder_clsid(tiff_mimetype, &format, &tiff_clsid);
+    result = get_encoder_clsid(L"image/tiff", &format, &tiff_clsid);
     ok(result, "getting TIFF encoding clsid failed");
 
     if (!bm1 || !bm2 || !result)




More information about the wine-cvs mailing list