Changed the server to return STATUS_* error codes.
diff --git a/server/snapshot.c b/server/snapshot.c
index 173fb9d..2a16ac5 100644
--- a/server/snapshot.c
+++ b/server/snapshot.c
@@ -10,7 +10,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include "winerror.h"
#include "winnt.h"
#include "tlhelp32.h"
@@ -72,13 +71,13 @@
if (!snapshot->process_count)
{
- set_error( ERROR_INVALID_PARAMETER ); /* FIXME */
+ set_error( STATUS_INVALID_PARAMETER ); /* FIXME */
return 0;
}
if (req->reset) snapshot->process_pos = 0;
else if (snapshot->process_pos >= snapshot->process_count)
{
- set_error( ERROR_NO_MORE_FILES );
+ set_error( STATUS_NO_MORE_FILES );
return 0;
}
ptr = &snapshot->process[snapshot->process_pos++];