diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 287d9d8ce6552b2ebd8d530707443f0529af9bac..5582a952b83cb663fef1512d65b26dd29581ab33 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -1532,7 +1532,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *grad,
 }
 
 GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient
-    *grad, ARGB *argb, INT *count)
+    *grad, GDIPCONST ARGB *argb, INT *count)
 {
     static int calls;
 
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index cd97a70332ee876185021904314119d3213f0a8f..96723674e48dcf9876b9c63afb7a1ed1eeb02eae 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -561,7 +561,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
 GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL);
 GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
 GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
-    ARGB*,INT*);
+    GDIPCONST ARGB*,INT*);
 GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
 
 /* PathIterator */