https://git.reactos.org/?p=reactos.git;a=commitdiff;h=943bcb0f74b9a420208c3281ed0870c0b9623618

commit 943bcb0f74b9a420208c3281ed0870c0b9623618
Author:     Amine Khaldi <[email protected]>
AuthorDate: Sat Nov 23 12:07:35 2019 +0100
Commit:     Amine Khaldi <[email protected]>
CommitDate: Sat Nov 23 12:07:35 2019 +0100

    [PDH_WINETEST] Sync with Wine Staging 4.18. CORE-16441
---
 modules/rostests/winetests/pdh/pdh.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/rostests/winetests/pdh/pdh.c 
b/modules/rostests/winetests/pdh/pdh.c
index 0a17906afbd..a9613e22b02 100644
--- a/modules/rostests/winetests/pdh/pdh.c
+++ b/modules/rostests/winetests/pdh/pdh.c
@@ -673,6 +673,13 @@ static void test_PdhLookupPerfNameByIndexA( void )
        "PdhLookupPerfNameByIndexA failed, got %s expected \'%% Processor 
Time\'\n", buffer);
     ok(size == sizeof("% Processor Time"), "PdhLookupPerfNameByIndexA failed 
%d\n", size);
 
+    size = sizeof(buffer);
+    ret = PdhLookupPerfNameByIndexA( NULL, 238, buffer, &size );
+    ok(ret == ERROR_SUCCESS, "PdhLookupPerfNameByIndexA failed 0x%08x\n", ret);
+    ok(!lstrcmpA( buffer, "Processor" ),
+       "PdhLookupPerfNameByIndexA failed, got %s expected \'Processor\'\n", 
buffer);
+    ok(size == sizeof("Processor"), "PdhLookupPerfNameByIndexA failed %d\n", 
size);
+
     size = sizeof(buffer);
     ret = PdhLookupPerfNameByIndexA( NULL, 674, NULL, &size );
     ok(ret == PDH_INVALID_ARGUMENT ||

Reply via email to