Module: wine Branch: master Commit: 9a51ac72492c5e367b8fe13b8df89858cfe5416a URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a51ac72492c5e367b8fe13b8d...
Author: Hans Leidekker hans@it.vu.nl Date: Sun Nov 11 13:34:28 2007 +0100
pdh: Make two tests pass on Vista.
---
dlls/pdh/tests/pdh.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/pdh/tests/pdh.c b/dlls/pdh/tests/pdh.c index 51a2b5f..f1b856d 100644 --- a/dlls/pdh/tests/pdh.c +++ b/dlls/pdh/tests/pdh.c @@ -488,7 +488,7 @@ static void test_PdhGetCounterInfoA( void )
size = sizeof(info) - 1; ret = PdhGetCounterInfoA( counter, 0, &size, NULL ); - ok(ret == PDH_MORE_DATA, "PdhGetCounterInfoA failed 0x%08x\n", ret); + ok(ret == PDH_MORE_DATA || ret == PDH_INVALID_ARGUMENT, "PdhGetCounterInfoA failed 0x%08x\n", ret);
size = sizeof(info); ret = PdhGetCounterInfoA( counter, 0, &size, &info ); @@ -542,7 +542,7 @@ static void test_PdhGetCounterInfoW( void )
size = sizeof(info) - 1; ret = PdhGetCounterInfoW( counter, 0, &size, NULL ); - ok(ret == PDH_MORE_DATA, "PdhGetCounterInfoW failed 0x%08x\n", ret); + ok(ret == PDH_MORE_DATA || ret == PDH_INVALID_ARGUMENT, "PdhGetCounterInfoW failed 0x%08x\n", ret);
size = sizeof(info); ret = PdhGetCounterInfoW( counter, 0, &size, &info );