Module: wine Branch: master Commit: 95817b6386a9b9531d60ba86433e3055a1dc0a7e URL: https://source.winehq.org/git/wine.git/?a=commit;h=95817b6386a9b9531d60ba864...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Jun 22 12:06:43 2021 +0200
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
---
dlls/pdh/tests/pdh.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/pdh/tests/pdh.c b/dlls/pdh/tests/pdh.c index 8165f32f50a..928714475bb 100644 --- a/dlls/pdh/tests/pdh.c +++ b/dlls/pdh/tests/pdh.c @@ -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));