git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40975
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-_tiffCloseProc(thandle_t WXUNUSED(handle))
+_tiffCloseIProc(thandle_t WXUNUSED(handle))
+ // there is no need to close the input stream
+ return 0;
+}
+
+int TIFFLINKAGEMODE
+_tiffCloseOProc(thandle_t handle)
+{
+ wxOutputStream *stream = (wxOutputStream*) handle;
+
+ return stream->Close() ? 0 : -1;
TIFF* tif = TIFFClientOpen(name, mode,
(thandle_t) &stream,
_tiffReadProc, _tiffNullProc,
TIFF* tif = TIFFClientOpen(name, mode,
(thandle_t) &stream,
_tiffReadProc, _tiffNullProc,
- _tiffSeekIProc, _tiffCloseProc, _tiffSizeProc,
+ _tiffSeekIProc, _tiffCloseIProc, _tiffSizeProc,
_tiffMapProc, _tiffUnmapProc);
return tif;
_tiffMapProc, _tiffUnmapProc);
return tif;
TIFF* tif = TIFFClientOpen(name, mode,
(thandle_t) &stream,
_tiffNullProc, _tiffWriteProc,
TIFF* tif = TIFFClientOpen(name, mode,
(thandle_t) &stream,
_tiffNullProc, _tiffWriteProc,
- _tiffSeekOProc, _tiffCloseProc, _tiffSizeProc,
+ _tiffSeekOProc, _tiffCloseOProc, _tiffSizeProc,
_tiffMapProc, _tiffUnmapProc);
return tif;
_tiffMapProc, _tiffUnmapProc);
return tif;