[LIBTIFF] Print errors to the console instead of in a MessageBox.
authorThomas Faber <thomas.faber@reactos.org>
Tue, 6 Mar 2018 02:12:25 +0000 (03:12 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 6 Mar 2018 02:12:31 +0000 (03:12 +0100)
This is a temporary fix for a timeout in windowscodecs:tiffformat.
The test ends up invoking Win32ErrorHandler with:
_TIFFVSetField: <IStream object>: Bad value 0 for "ResolutionUnit" tag.

Ideally we'd keep the MessageBox version of the error/warning handlers but
make them respect the current error mode to avoid blocking tests and other
non-interactive applications.

dll/3rdparty/libtiff/CMakeLists.txt

index 9c57c2d..6c28292 100644 (file)
@@ -2,7 +2,8 @@
 add_definitions(
     -DWIN32
     -DNDEBUG
-    -DUSE_WIN32_FILEIO)
+    -DUSE_WIN32_FILEIO
+    -DTIF_PLATFORM_CONSOLE)
 
 include_directories(
     ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff