Re: [AD] bug in wdsound.c |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Seems like a safe change. > There is a small bug in src/win/wdsound.c, line 485. The variable prim_buf is > passed to directx without checking if it is NULL first, which leads to a > segfault. > > I've attached a patch that move the call inside the "if (prim_buf) { ... }" > block a few lines upper, and seems to fix the bug. > > -- > Julien Cugnière
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |