[ADVAPI32] "Minimally" improve the SaferComputeTokenFromLevel() stub. (#5435)

CORE-14015, CORE-6942

This makes Windows 2003 CMD.EXE to start batch files again.
Addendum to commit 17d42ae2a (r58868).

Replaces PR #3084 by freely importing and adapting Wine patch
17110a0a89
```
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:
Hermès Bélusca-Maïto 2023-07-13 17:14:19 +02:00
parent e2a587c2ef
commit d3101db2c7
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -155,8 +155,8 @@ SaferComputeTokenFromLevel(
_Inout_opt_ PVOID pReserved)
{
FIXME("(%p, %p, %p, 0x%lx, %p) stub\n", LevelHandle, InAccessToken, OutAccessToken, dwFlags, pReserved);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
*OutAccessToken = (dwFlags & SAFER_TOKEN_NULL_IF_EQUAL) ? NULL : UlongToHandle(0xdeadf00d);
return TRUE;
}