advapi32: Improve the SaferComputeTokenFromLevel stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47274
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-05-28 09:34:10 +02:00 committed by Alexandre Julliard
parent eb615ea0cb
commit 17110a0a89
2 changed files with 6 additions and 1 deletions

View File

@ -6172,7 +6172,7 @@ BOOL WINAPI SaferComputeTokenFromLevel(SAFER_LEVEL_HANDLE handle, HANDLE token,
{
FIXME("(%p, %p, %p, %x, %p) stub\n", handle, token, access_token, flags, reserved);
*access_token = (HANDLE)0xdeadbeef;
*access_token = (flags & SAFER_TOKEN_NULL_IF_EQUAL) ? NULL : (HANDLE)0xdeadbeef;
return TRUE;
}

View File

@ -30,6 +30,11 @@ extern "C" {
DECLARE_HANDLE(SAFER_LEVEL_HANDLE);
#define SAFER_TOKEN_NULL_IF_EQUAL 0x00000001
#define SAFER_TOKEN_COMPARE_ONLY 0x00000002
#define SAFER_TOKEN_MAKE_INERT 0x00000004
#define SAFER_TOKEN_WANT_FLAGS 0x00000008
#define SAFER_MAX_HASH_SIZE 64
#include <pshpack8.h>