Commit 95817b63 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 071292be
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment