Feb. 15, 2020
10:21 a.m.
/* Some invalid array values. */ + dashes[9] = 0.0; status = GdipSetPenDashArray(pen, &dashes[7], 5); expect(InvalidParameter, status); dashes[9] = -1.0;
Please test the result of GdipSetPenDashArray with those arguments before changing dashes[9]. I'd like to see that we start out with valid arguments, so we can be sure we didn't make the same mistake again.