| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2004.10.17 17:26 "Re: WIN32 _TIFFrealloc() bug?", by Ville HervaOn Sun, Oct 17, 2004 at 11:47:40AM -0500, you [Larry Grill] wrote:
> I thought this one was fixed in the general release some time ago. If you
> search the message archive you should find the same topic from me,
(I'm sorry about the duplicated post - I originally posted the message
without subscribing to the list, and the post was left waiting for a
moderator approval. I waited a while and then subscribed and reposted,
thinking that the moderator probably is busy and hoped that he'd reject the
earlier message since the other one has already reached the list.)
> but if you change the TIFFrealloc method this way, it will be fine. This
> is corrected in the 3.7 release.
Yes, the 3.7.0 release appears to contain the fix.
> tdata_t
> _TIFFrealloc(tdata_t p, tsize_t s)
> {
> void* pvTmp;
> tsize_t old;
>
> if(p==NULL)
> return ((tdata_t)GlobalAlloc(GMEM_FIXED, s));
This is better than my fix (not that my fix wouldn't work).
thanks,
-- v --
v@iki.fi
|
|||||||