From c7d4b0c69fb8de9a2344c7d9d4bcda6e3feef094 Mon Sep 17 00:00:00 2001 From: Vitaly Perov Date: Fri, 5 Feb 2010 19:46:02 +0300 Subject: [PATCH] setupapi: Add stub for SetupLogFile{A,W}. --- dlls/setupapi/setupapi.spec | 4 ++-- dlls/setupapi/stubs.c | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index bcf88f4214b..51a5c2e011c 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -456,8 +456,8 @@ @ stdcall SetupIterateCabinetW(wstr long ptr ptr) @ stub SetupLogErrorA @ stdcall SetupLogErrorW(wstr long) -@ stub SetupLogFileA -@ stub SetupLogFileW +@ stdcall SetupLogFileA(ptr str str str long str str str long) +@ stdcall SetupLogFileW(ptr wstr wstr wstr long wstr wstr wstr long) @ stdcall SetupOpenAppendInfFileA(str long ptr) @ stdcall SetupOpenAppendInfFileW(wstr long ptr) @ stdcall SetupOpenFileQueue() diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c index 3496c6b451f..f8e99e0d62a 100644 --- a/dlls/setupapi/stubs.c +++ b/dlls/setupapi/stubs.c @@ -348,3 +348,48 @@ CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags) FIXME("%u %p 0x%08x: stub\n", index, class, flags); return CR_NO_SUCH_VALUE; } + +/*********************************************************************** + * SetupLogFileW (SETUPAPI.@) + */ +BOOL WINAPI SetupLogFileW( + HSPFILELOG FileLogHandle, + PCWSTR LogSectionName, + PCWSTR SourceFileName, + PCWSTR TargetFileName, + DWORD Checksum, + PCWSTR DiskTagfile, + PCWSTR DiskDescription, + PCWSTR OtherInfo, + DWORD Flags ) +{ + FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle, + debugstr_w(LogSectionName), debugstr_w(SourceFileName), + debugstr_w(TargetFileName), Checksum, debugstr_w(DiskTagfile), + debugstr_w(DiskDescription), debugstr_w(OtherInfo), Flags); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + +/*********************************************************************** + * SetupLogFileA (SETUPAPI.@) + */ +BOOL WINAPI SetupLogFileA( + HSPFILELOG FileLogHandle, + PCSTR LogSectionName, + PCSTR SourceFileName, + PCSTR TargetFileName, + DWORD Checksum, + PCSTR DiskTagfile, + PCSTR DiskDescription, + PCSTR OtherInfo, + DWORD Flags ) +{ + FIXME("(%p, %p, '%s', '%s', %d, %p, %p, %p, %d): stub\n", FileLogHandle, + LogSectionName, SourceFileName, TargetFileName, Checksum, DiskTagfile, + DiskDescription, OtherInfo, Flags); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +}