Author: tfaber
Date: Sat Nov 28 10:00:40 2015
New Revision: 70175
URL:
http://svn.reactos.org/svn/reactos?rev=70175&view=rev
Log:
[GDIPLUS_WINETEST]
- Fix VS2010 build
Modified:
trunk/rostests/winetests/gdiplus/image.c
Modified: trunk/rostests/winetests/gdiplus/image.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/gdiplus/image.c…
==============================================================================
--- trunk/rostests/winetests/gdiplus/image.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/gdiplus/image.c [iso-8859-1] Sat Nov 28 10:00:40 2015
@@ -4719,10 +4719,10 @@
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");
@@ -4739,9 +4739,9 @@
stat = pGdipCreateEffect(noneffect, &effect);
todo_wine expect(Win32Error, stat);
- for(i=0; i < sizeof(effectlist) / sizeof(GUID); i++)
- {
- stat = pGdipCreateEffect(effectlist[i], &effect);
+ for(i=0; i < sizeof(effectlist) / sizeof(effectlist[0]); i++)
+ {
+ stat = pGdipCreateEffect(*effectlist[i], &effect);
todo_wine expect(Ok, stat);
if(stat == Ok)
{