Commit 17110a0a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

advapi32: Improve the SaferComputeTokenFromLevel stub.

parent eb615ea0
......@@ -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;
}
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment