pdh/tests: Skip a test that crashes on Windows 10 >= 2004.

Starting with Windows 10 2004 PdhMakeCounterPathA() does not check the
query handle before using it.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-06-22 12:06:43 +02:00 committed by Alexandre Julliard
parent 071292bedd
commit 95817b6386
1 changed files with 2 additions and 0 deletions

View File

@ -867,9 +867,11 @@ static void test_PdhMakeCounterPathA(void)
ret = PdhMakeCounterPathA(NULL, NULL, &buflen, 0);
ok(ret == PDH_INVALID_ARGUMENT, "PdhMakeCounterPathA failed 0x%08x\n", ret);
if (0) { /* Crashes on Windows 10 >= 2004 */
buflen = 0;
ret = PdhMakeCounterPathA(NULL, buffer, &buflen, 0);
ok(ret == PDH_INVALID_ARGUMENT, "PdhMakeCounterPathA failed 0x%08x\n", ret);
}
buflen = sizeof(buffer);
memset(&e, 0, sizeof(e));