pdh: Fix prototype of PdhGetLogFileType[A/W].
Sebastian Lackner
sebastian at fds-team.de
Thu Dec 24 16:08:08 CST 2015
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
As pointed out on the mailing list yesterday, the first parameter can't be a handle.
Output after this patch:
fixme:pdh:PdhGetLogFileTypeW L"dummy.log", 0x33fd9c: stub
dlls/pdh/pdh.spec | 4 ++--
dlls/pdh/pdh_main.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/pdh/pdh.spec b/dlls/pdh/pdh.spec
index 529b92d..41900c8 100644
--- a/dlls/pdh/pdh.spec
+++ b/dlls/pdh/pdh.spec
@@ -62,8 +62,8 @@
@ stub PdhGetFormattedCounterArrayW
@ stdcall PdhGetFormattedCounterValue(ptr long ptr ptr)
@ stub PdhGetLogFileSize
-@ stdcall PdhGetLogFileTypeA(ptr ptr)
-@ stdcall PdhGetLogFileTypeW(ptr ptr)
+@ stdcall PdhGetLogFileTypeA(str ptr)
+@ stdcall PdhGetLogFileTypeW(wstr ptr)
@ stub PdhGetLogSetGUID
@ stub PdhGetRawCounterArrayA
@ stub PdhGetRawCounterArrayW
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index 036d28b..8854fd7 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -1273,17 +1273,17 @@ PDH_STATUS WINAPI PdhSetDefaultRealTimeDataSource( DWORD source )
/***********************************************************************
* PdhGetLogFileTypeA (PDH.@)
*/
-PDH_STATUS WINAPI PdhGetLogFileTypeA(PDH_HLOG log, DWORD *type)
+PDH_STATUS WINAPI PdhGetLogFileTypeA(const char *log, DWORD *type)
{
- FIXME("%p, %p: stub\n", log, type);
+ FIXME("%s, %p: stub\n", debugstr_a(log), type);
return PDH_NOT_IMPLEMENTED;
}
/***********************************************************************
* PdhGetLogFileTypeW (PDH.@)
*/
-PDH_STATUS WINAPI PdhGetLogFileTypeW(PDH_HLOG log, DWORD *type)
+PDH_STATUS WINAPI PdhGetLogFileTypeW(const WCHAR *log, DWORD *type)
{
- FIXME("%p, %p: stub\n", log, type);
+ FIXME("%s, %p: stub\n", debugstr_w(log), type);
return PDH_NOT_IMPLEMENTED;
}
--
2.6.4
More information about the wine-patches
mailing list