Commit 3158fd76 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't read an array at index -1 in debugstr_pf().

parent 3c04958b
......@@ -366,7 +366,7 @@ static const char *debugstr_pf(const pixel_format *pf)
color_modes[pf->color_mode].alpha_bits,
pf->depth_bits,
pf->stencil_bits,
color_modes[pf->accum_mode - 1].color_bits,
pf->accum_mode ? color_modes[pf->accum_mode - 1].color_bits : 0,
pf->aux_buffers,
pf->backing_store,
pf->double_buffer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment