[PATCH] pdh: Add PdhVbAddCounter stub.

Andrey Gusev andrey.goosev at gmail.com
Thu Feb 8 05:45:42 CST 2018


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

diff --git a/dlls/pdh/pdh.spec b/dlls/pdh/pdh.spec
index 72e6fa39f0..4f5d603db1 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(long str long)
 @ stub PdhVbCreateCounterPathList
 @ stub PdhVbGetCounterPathElements
 @ stub PdhVbGetCounterPathFromList
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index fb131bd354..c7cdac680f 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -1114,6 +1114,16 @@ PDH_STATUS WINAPI PdhValidatePathExW( PDH_HLOG source, LPCWSTR path )
 }
 
 /***********************************************************************
+ *              PdhVbAddCounter   (PDH.@)
+ */
+PDH_STATUS WINAPI PdhVbAddCounter(LONG query, LPCSTR path, LONG counter)
+{
+    FIXME("%d, %s, %d: stub!\n", query, path, counter);
+
+    return PDH_NOT_IMPLEMENTED;
+}
+
+/***********************************************************************
  *              PdhMakeCounterPathA   (PDH.@)
  */
 PDH_STATUS WINAPI PdhMakeCounterPathA( PDH_COUNTER_PATH_ELEMENTS_A *e, LPSTR buffer,
-- 
2.13.6




More information about the wine-devel mailing list