division by zero in winword

Vincent Béron vberon at mecano.gme.usherb.ca
Wed Sep 22 15:12:20 CDT 2004


Le mer 22/09/2004 à 15:39, Joris Huizer a écrit :
> Robbert Xerox wrote:
> > Hi, in quite a few programs i can not browse the
> > filesystem when opening a "listbox"; to be more clear:
> > for example when i do in winword Open and the listbox
> > appears, and i try to open the pull down menu winword
> > just quits(without an error message in wine).  In
> > another program like "Camel join" it quits as soon as
> > i go up to the level of "my computer" with a message
> > "division by zero in Volme_ReadFATSuperblock. I was
> > able to
> > track the problem down to the following lines in
> > volume.c (starting from line 502)
> > 
> >       nsect -= GETWORD(buff, 0x0e) + buff[0x10] * sz +
> >             (GETWORD(buff, 0x11) * 32 + (GETWORD(buff,
> > 0x0b) - 1)) / GETWORD(buff, 0x0b);
> >         nclust = nsect / buff[0x0d];
> > 
> > 
> 
> if (GETWORD(buff, 0x0b) == 0)
> {
>      /* what to do about this?? */
> }
> else
> {
>      nsect -= GETWORD(buff, 0x0e) + buff[0x10] * sz +
>              (GETWORD(buff, 0x11) * 32 + (GETWORD(buff,
>               0x0b) - 1)) / GETWORD(buff, 0x0b);
>      if (buff[0x0d] == 0)
>      {
>          /* what to do about this one?? */
>      }
>      else
>      {
>          nclust = nsect / buff[0x0d];
>      }
> }
> 
> Now, how come those values become zero? I don't know, so I can't fill in 
> the missing stuff there



More information about the wine-patches mailing list