- Fix NtSuspendThread: correct PreviousMode check, return error if thread is terminat...
authorAlex Ionescu <aionescu@gmail.com>
Tue, 9 Aug 2005 05:54:57 +0000 (05:54 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Tue, 9 Aug 2005 05:54:57 +0000 (05:54 +0000)
commit4c12530bbc232b6e814e0ed641a73eceb71b6dba
tree5fd941eb658ef5a0bc646970e6ffae6a3dd12bbe
parent2d51263ec67b9497931bd44b790cc20e1478d8b7
- Fix NtSuspendThread: correct PreviousMode check, return error if thread is terminating, handle KeSuspendThread's possible exception, only attempt to return previous suspend count if asked to.
- Make KeSuspendThread return an exception if the thread has been suspended beyond the limit.

This fixes another wine test.

svn path=/trunk/; revision=17230
reactos/ntoskrnl/ke/kthread.c
reactos/ntoskrnl/ps/suspend.c