gdiplus/tests: Fix build with MSVC.
authorThomas Faber <thomas.faber@reactos.org>
Thu, 26 Nov 2015 16:34:49 +0000 (17:34 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 27 Nov 2015 06:38:16 +0000 (15:38 +0900)
VC 2010 can't initialize a structure with a structure.

Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/gdiplus/tests/image.c

index d3e7202de89b9bde5e95fe1780d94ff90e341b8b..6be4a5b33402c2c8d5701e6119296aa47dce2c80 100644 (file)
@@ -4699,10 +4699,10 @@ static void test_createeffect(void)
     CGpEffect *effect;
     HMODULE mod = GetModuleHandleA("gdiplus.dll");
     int i;
-    const GUID effectlist[] =
-               {BlurEffectGuid, SharpenEffectGuid, ColorMatrixEffectGuid, ColorLUTEffectGuid,
-                BrightnessContrastEffectGuid, HueSaturationLightnessEffectGuid, LevelsEffectGuid,
-                TintEffectGuid, ColorBalanceEffectGuid, RedEyeCorrectionEffectGuid, ColorCurveEffectGuid};
+    const GUID * const effectlist[] =
+               {&BlurEffectGuid, &SharpenEffectGuid, &ColorMatrixEffectGuid, &ColorLUTEffectGuid,
+                &BrightnessContrastEffectGuid, &HueSaturationLightnessEffectGuid, &LevelsEffectGuid,
+                &TintEffectGuid, &ColorBalanceEffectGuid, &RedEyeCorrectionEffectGuid, &ColorCurveEffectGuid};
 
     pGdipCreateEffect = (void*)GetProcAddress( mod, "GdipCreateEffect");
     pGdipDeleteEffect = (void*)GetProcAddress( mod, "GdipDeleteEffect");
@@ -4719,9 +4719,9 @@ static void test_createeffect(void)
     stat = pGdipCreateEffect(noneffect, &effect);
     todo_wine expect(Win32Error, stat);
 
-    for(i=0; i < sizeof(effectlist) / sizeof(GUID); i++)
+    for(i=0; i < sizeof(effectlist) / sizeof(effectlist[0]); i++)
     {
-        stat = pGdipCreateEffect(effectlist[i], &effect);
+        stat = pGdipCreateEffect(*effectlist[i], &effect);
         todo_wine expect(Ok, stat);
         if(stat == Ok)
         {