2 ===================================================================
3 --- tif_open.c (revision 48037)
4 +++ tif_open.c (working copy)
6 TIFFSetClientdata(TIFF* tif, thandle_t newvalue)
8 thandle_t m = tif->tif_clientdata;
9 +#ifdef USE_WIN32_FILEIO
10 + newvalue = (thandle_t)_get_osfhandle((int)newvalue);
11 +#endif /* USE_WIN32_FILEIO */
12 tif->tif_clientdata = newvalue;