=?UTF-8?Q?Michael=20M=C3=BCller=20?=: server: Add support for Win8 pseudo handles.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 11 09:59:45 CST 2016


Module: wine
Branch: master
Commit: 18a8636ebee7c02d1a777eaf2ce287d92607a145
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18a8636ebee7c02d1a777eaf2ce287d92607a145

Author: Michael Müller <michael at fds-team.de>
Date:   Wed Feb 10 22:22:45 2016 +0100

server: Add support for Win8 pseudo handles.

Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 */




More information about the wine-cvs mailing list