Skip to content

Commit a479aff

Browse files
committed
[WIN32U_APITEST] Skip NtUserProcessConnect test on Vista+
NtUserProcessConnect can only be called by CSRSS on Vista+.
1 parent e04c703 commit a479aff

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

modules/rostests/apitests/win32u/ntuser/NtUserProcessConnect.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ START_TEST(NtUserProcessConnect)
2424
UserConnect.ulVersion = MAKELONG(0, 5); // == USER_VERSION
2525
// UserConnect.dwDispatchCount;
2626
Status = NtUserProcessConnect(hProcess, &UserConnect, sizeof(UserConnect));
27-
TEST(NT_SUCCESS(Status));
27+
28+
if (GetNTVersion() >= _WIN32_WINNT_VISTA)
29+
{
30+
ok_ntstatus(Status, STATUS_UNSUCCESSFUL);
31+
skip("NtUserProcessConnect can only be called by CSRSS on Vista and later.\n");
32+
return;
33+
}
34+
35+
ok_ntstatus(Status, STATUS_SUCCESS);
2836

2937
printf("UserConnect.ulVersion = 0x%lx\n", UserConnect.ulVersion);
3038
printf("UserConnect.ulCurrentVersion = 0x%lx\n", UserConnect.ulCurrentVersion);

0 commit comments

Comments
 (0)