pdh: Fix two tests that fail on win2k3.

This commit is contained in:
James Hawkins 2008-04-23 18:05:02 -05:00 committed by Alexandre Julliard
parent 1cb8e96da9
commit 6c59a15a19
1 changed files with 6 additions and 2 deletions

View File

@ -647,7 +647,9 @@ static void test_PdhLookupPerfNameByIndexA( void )
size = sizeof(buffer);
ret = PdhLookupPerfNameByIndexA( NULL, 674, NULL, &size );
ok(ret == PDH_INVALID_ARGUMENT, "PdhLookupPerfNameByIndexA failed 0x%08x\n", ret);
ok(ret == PDH_INVALID_ARGUMENT ||
ret == PDH_MORE_DATA, /* win2k3 */
"PdhLookupPerfNameByIndexA failed 0x%08x\n", ret);
size = sizeof(buffer);
ret = PdhLookupPerfNameByIndexA( NULL, 674, buffer, &size );
@ -677,7 +679,9 @@ static void test_PdhLookupPerfNameByIndexW( void )
size = sizeof(buffer) / sizeof(WCHAR);
ret = PdhLookupPerfNameByIndexW( NULL, 674, NULL, &size );
ok(ret == PDH_INVALID_ARGUMENT, "PdhLookupPerfNameByIndexW failed 0x%08x\n", ret);
ok(ret == PDH_INVALID_ARGUMENT ||
ret == PDH_MORE_DATA, /* win2k3 */
"PdhLookupPerfNameByIndexW failed 0x%08x\n", ret);
size = sizeof(buffer) / sizeof(WCHAR);
ret = PdhLookupPerfNameByIndexW( NULL, 674, buffer, &size );