On Friday 07 December 2007, Laurent Vivier wrote: > - acb->aiocb.aio_nbytes = nb_sectors * 512; > + if (nb_sectors < 0) > + acb->aiocb.aio_nbytes = -nb_sectors; > + else > + acb->aiocb.aio_nbytes = nb_sectors * 512;
Ugly hacks like this need at least a decent comment. Paul