From f895ad180d1857b1bf69be91923b2ad82e5b2793 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 29 Jul 2005 14:41:14 +0000 Subject: [PATCH] Fixed a couple of error codes. --- server/handle.c | 4 ++-- server/thread.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/handle.c b/server/handle.c index f170374bbc5..1baa523e808 100644 --- a/server/handle.c +++ b/server/handle.c @@ -331,13 +331,13 @@ int close_handle( struct process *process, obj_handle_t handle, int *fd ) if (!(entry = get_handle( process, handle ))) return 0; if (entry->access & RESERVED_CLOSE_PROTECT) { - set_error( STATUS_INVALID_HANDLE ); + set_error( STATUS_HANDLE_NOT_CLOSABLE ); return 0; } obj = entry->ptr; if (!obj->ops->close_handle( obj, process, handle )) { - set_error( STATUS_INVALID_HANDLE ); + set_error( STATUS_HANDLE_NOT_CLOSABLE ); return 0; } entry->ptr = NULL; diff --git a/server/thread.c b/server/thread.c index 93c08ce1358..b035bb97b5a 100644 --- a/server/thread.c +++ b/server/thread.c @@ -270,7 +270,7 @@ struct thread *get_thread_from_id( thread_id_t id ) struct object *obj = get_ptid_entry( id ); if (obj && obj->ops == &thread_ops) return (struct thread *)grab_object( obj ); - set_win32_error( ERROR_INVALID_THREAD_ID ); + set_error( STATUS_INVALID_CID ); return NULL; }