[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
https://github.com/wine-mirror/wine/commit/17110a0a890d2bacb5b348bd9bb3cef10d144e19
```
advapi32: Improve the SaferComputeTokenFromLevel stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47274
Signed-off-by: Hans Leidekker <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
```
This commit is contained in:
Hermès Bélusca-Maïto
2023-07-15 20:50:16 +02:00
parent e2a587c2ef
commit d3101db2c7
+2 -2
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;
}