Mercurial > hg > orthanc
diff Core/Images/JpegReader.cpp @ 2170:baf8dd89b4e0
improved support for sandboxed environments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Nov 2016 11:45:02 +0100 |
parents | fd5875662670 |
children | 35febe19e874 |
line wrap: on
line diff
--- a/Core/Images/JpegReader.cpp Tue Nov 22 15:03:14 2016 +0100 +++ b/Core/Images/JpegReader.cpp Wed Nov 23 11:45:02 2016 +0100 @@ -94,6 +94,7 @@ } +#if ORTHANC_SANDBOXED == 0 void JpegReader::ReadFromFile(const std::string& filename) { FILE* fp = SystemToolbox::OpenFile(filename, FileMode_ReadBinary); @@ -135,6 +136,7 @@ jpeg_destroy_decompress(&cinfo); fclose(fp); } +#endif void JpegReader::ReadFromMemory(const void* buffer,