https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2b8f4f6e244dcd8387556…
commit 2b8f4f6e244dcd83875564f72d8320c687a3a240
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Mar 7 11:02:55 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Wed Mar 7 13:18:09 2018 +0100
[NTOS:EX] Worker threads must not exit with a critical region held. CORE-13734
---
ntoskrnl/ex/work.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/ex/work.c b/ntoskrnl/ex/work.c
index 731f442a85..24d328abc0 100644
--- a/ntoskrnl/ex/work.c
+++ b/ntoskrnl/ex/work.c
@@ -162,7 +162,7 @@ ProcessLoop:
WorkItem->WorkerRoutine(WorkItem->Parameter);
/* Make sure APCs are not disabled */
- if (Thread->Tcb.SpecialApcDisable)
+ if (Thread->Tcb.CombinedApcDisable != 0)
{
/* We're nice and do it behind your back */
DPRINT1("Warning: Broken Worker Thread: %p %p %p came back "
@@ -170,7 +170,8 @@ ProcessLoop:
WorkItem->WorkerRoutine,
WorkItem->Parameter,
WorkItem);
- Thread->Tcb.SpecialApcDisable = 0;
+ ASSERT(Thread->Tcb.CombinedApcDisable == 0);
+ Thread->Tcb.CombinedApcDisable = 0;
}
/* Make sure it returned at right IRQL */
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ad301e6604fac82562294…
commit ad301e6604fac825622949e909bc41ac145c826e
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Tue Mar 6 03:12:25 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Tue Mar 6 03:12:31 2018 +0100
[LIBTIFF] Print errors to the console instead of in a MessageBox.
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/3rdparty/libtiff/CMakeLists.txt b/dll/3rdparty/libtiff/CMakeLists.txt
index 9c57c2d1b3..6c28292ec1 100644
--- a/dll/3rdparty/libtiff/CMakeLists.txt
+++ b/dll/3rdparty/libtiff/CMakeLists.txt
@@ -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