[PATCH v2] pdh: Add PdhVbAddCounter stub.

Andrey Gusev andrey.goosev at gmail.com
Tue Nov 13 10:41:49 CST 2018


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44109

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/pdh/pdh.spec   |  2 +-
 dlls/pdh/pdh_main.c | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dlls/pdh/pdh.spec b/dlls/pdh/pdh.spec
index 72e6fa39f0..5f61a8a42c 100644
--- a/dlls/pdh/pdh.spec
+++ b/dlls/pdh/pdh.spec
@@ -141,7 +141,7 @@
 @ stdcall PdhValidatePathExA(ptr str)
 @ stdcall PdhValidatePathExW(ptr wstr)
 @ stdcall PdhValidatePathW(wstr)
-@ stub PdhVbAddCounter
+@ stdcall PdhVbAddCounter(ptr str ptr)
 @ stub PdhVbCreateCounterPathList
 @ stub PdhVbGetCounterPathElements
 @ stub PdhVbGetCounterPathFromList
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index b648d8b8e6..bc3674a28a 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -1083,6 +1083,18 @@ PDH_STATUS WINAPI PdhValidatePathW( LPCWSTR path )
     return PDH_CSTATUS_NO_COUNTER;
 }
 
+/***********************************************************************
+ *              PdhVbAddCounter   (PDH.@)
+ */
+PDH_STATUS WINAPI PdhVbAddCounter( PDH_HQUERY query, LPCSTR path, PDH_HCOUNTER *counter )
+{
+    FIXME("%p, %s, %p: stub!\n", query, debugstr_a(path), counter);
+
+    if (!path) return PDH_INVALID_ARGUMENT;
+
+    return PDH_NOT_IMPLEMENTED;
+}
+
 /***********************************************************************
  *              PdhValidatePathExA   (PDH.@)
  */
-- 
2.17.2




More information about the wine-devel mailing list