[2/3] server: Add support for Win8 pseudo handles.

Sebastian Lackner sebastian at fds-team.de
Wed Feb 10 15:22:45 CST 2016


From: Michael Müller <michael at fds-team.de>

Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 server/handle.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/server/handle.c b/server/handle.c
index 15e5670..3b0d033 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -405,6 +405,12 @@ static inline struct object *get_magic_handle( obj_handle_t handle )
 {
     switch(handle)
     {
+        case 0xfffffffa:  /* current thread impersonation token pseudo-handle */
+            return (struct object *)thread_get_impersonation_token( current );
+        case 0xfffffffb:  /* current thread token pseudo-handle */
+            return (struct object *)current->token;
+        case 0xfffffffc:  /* current process token pseudo-handle */
+            return (struct object *)current->process->token;
         case 0xfffffffe:  /* current thread pseudo-handle */
             return &current->obj;
         case 0x7fffffff:  /* current process pseudo-handle */
-- 
2.7.0



More information about the wine-patches mailing list