Bug in RegEnumValueA ?

Max max at veneto.com
Wed Jul 3 13:50:27 CDT 2002


eheheh... no, I mean that AutoCAD asks for buffer size and gets 4, allocates
a buffer for 4 bytes and then wine overflows telling that it needs 94 when 
reading registry value....
BTW, I agree that entering in an endless loop DOES mean some kind
of nasty design in autocad..... it would be much better to exit with an
error message

Regards

Max

Alle 19:08, martedì 2 luglio 2002, hai scritto:
> Massimo wrote:
> >Looking more with some debug print statements, it appears that Autocad
> > allocates 4 bytes of buffer for the value, but RegEnumValueA needs much
> > more, 94 in this case, giving an Out-Of-Buffer error back.
> >It seems to me that the 94 bytes are for the name of the key, not for the
> > value....
> >
> >Regards
> >
> >Max
>
> Is it me, or did you just say that placing a five characters value in
> the registry will cause Autocad to hang indefenitely on Windows? Sloppy
> programming if I ever saw one.
>
> Not that this is, in any way, an excuse, mind you.
>
>             Shachar




More information about the wine-devel mailing list