Andrey Gusev : pdh: Add PdhVbAddCounter stub.
Alexandre Julliard
julliard at winehq.org
Sun Mar 3 13:21:30 CST 2019
Module: wine
Branch: oldstable
Commit: c141ae55ec2c560e142074fe1bfbb732c6003bca
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c141ae55ec2c560e142074fe1bfbb732c6003bca
Author: Andrey Gusev <andrey.goosev at gmail.com>
Date: Tue Nov 13 18:41:49 2018 +0200
pdh: Add PdhVbAddCounter stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44109
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit fe8ed8af8dcb6210ea9a98cc54de604c1af898a0)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
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 72e6fa3..5f61a8a 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 0d7c5ef..b7cb4b7 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -1098,6 +1098,18 @@ PDH_STATUS WINAPI PdhValidatePathW( LPCWSTR path )
}
/***********************************************************************
+ * 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.@)
*/
PDH_STATUS WINAPI PdhValidatePathExA( PDH_HLOG source, LPCSTR path )
More information about the wine-cvs
mailing list