kernel32/tests: Skip some tests when NtSetInformationProcess is denied access.

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-10-06 14:52:32 +02:00 committed by Alexandre Julliard
parent a9e6f9aa71
commit 71e96bd3b7
1 changed files with 2 additions and 1 deletions

View File

@ -2601,7 +2601,8 @@ static void test_atl_thunk_emulation( ULONG dep_flags )
if (old_flags != dep_flags)
{
ret = NtSetInformationProcess( GetCurrentProcess(), ProcessExecuteFlags, &dep_flags, sizeof(dep_flags) );
if (ret == STATUS_INVALID_INFO_CLASS) /* Windows 2000 */
if (ret == STATUS_INVALID_INFO_CLASS /* Windows 2000 */ ||
ret == STATUS_ACCESS_DENIED)
{
win_skip( "Skipping DEP tests with ProcessExecuteFlags = %d\n", dep_flags );
return;