Rename server-Process -> server-OpenProcess to avoid confusion with other patchsets.

This commit is contained in:
Sebastian Lackner
2014-08-23 02:31:17 +02:00
parent 11341b00f6
commit 8680d3ff32
3 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,28 @@
From 4f041a785404f778e34d5ecbf1249ca79704a89d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 14 Aug 2014 03:05:52 +0200
Subject: server: Return error when opening a terminating process.
---
server/process.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server/process.c b/server/process.c
index 7b9a3b2..1012a8e 100644
--- a/server/process.c
+++ b/server/process.c
@@ -1082,7 +1082,10 @@ DECL_HANDLER(open_process)
reply->handle = 0;
if (process)
{
- reply->handle = alloc_handle( current->process, process, req->access, req->attributes );
+ if (process->startup_state != STARTUP_ABORTED)
+ reply->handle = alloc_handle( current->process, process, req->access, req->attributes );
+ else
+ set_error( STATUS_INVALID_PARAMETER );
release_object( process );
}
}
--
1.7.9.5

View File

@@ -0,0 +1,4 @@
Author: Michael Müller
Subject: Return error when opening a terminating process.
Revision: 2
Fixes: [37087] Gothic 2 demo expects an error when opening a terminating process