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

This commit is contained in:
Ken Thomases 2013-03-25 00:34:32 -05:00 committed by Alexandre Julliard
parent 3c04958b8a
commit 3158fd764d
1 changed files with 1 additions and 1 deletions

View File

@ -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,