ntdll/tests: ProcessImageFileName is not supported before XP.

This commit is contained in:
Paul Vriens 2008-03-07 22:16:49 +01:00 committed by Alexandre Julliard
parent 470a0a0cae
commit af7172c186
1 changed files with 5 additions and 0 deletions

View File

@ -765,6 +765,11 @@ static void test_query_process_image_file_name(void)
INT len;
status = pNtQueryInformationProcess(NULL, ProcessImageFileName, &image_file_name, sizeof(image_file_name), NULL);
if (status == STATUS_INVALID_INFO_CLASS)
{
skip("ProcessImageFileName is not supported\n");
return;
}
ok( status == STATUS_INVALID_HANDLE, "Expected STATUS_INVALID_HANDLE, got %08x\n", status);
status = pNtQueryInformationProcess( GetCurrentProcess(), ProcessImageFileName, &image_file_name, 2, &ReturnLength);