Changed the server to return STATUS_* error codes.
diff --git a/server/thread.c b/server/thread.c
index 5932644..f162918 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -25,7 +25,6 @@
#include "winbase.h"
-#include "winerror.h"
#include "handle.h"
#include "process.h"
@@ -247,7 +246,7 @@
thread->priority = req->priority;
if (req->mask & SET_THREAD_INFO_AFFINITY)
{
- if (req->affinity != 1) set_error( ERROR_INVALID_PARAMETER );
+ if (req->affinity != 1) set_error( STATUS_INVALID_PARAMETER );
else thread->affinity = req->affinity;
}
}
@@ -260,7 +259,7 @@
{
if (!(thread->process->suspend + thread->suspend++)) stop_thread( thread );
}
- else set_error( ERROR_SIGNAL_REFUSED );
+ else set_error( STATUS_SUSPEND_COUNT_EXCEEDED );
return old_count;
}
@@ -475,7 +474,7 @@
if ((count < 0) || (count > MAXIMUM_WAIT_OBJECTS))
{
- set_error( ERROR_INVALID_PARAMETER );
+ set_error( STATUS_INVALID_PARAMETER );
return 0;
}
for (i = 0; i < count; i++)