server: Add support for Win8 pseudo handles.

Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2016-02-10 22:22:45 +01:00 committed by Alexandre Julliard
parent e7bbca8fcc
commit 18a8636ebe
1 changed files with 6 additions and 0 deletions

View File

@ -405,6 +405,12 @@ static inline struct object *get_magic_handle( obj_handle_t handle )
{ {
switch(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 */ case 0xfffffffe: /* current thread pseudo-handle */
return &current->obj; return &current->obj;
case 0x7fffffff: /* current process pseudo-handle */ case 0x7fffffff: /* current process pseudo-handle */