wine-staging/patches/vssapi-CreateVssBackupComponents/0005-vssapi-Add-CreateVssBackupComponentsInternal-stub.patch

72 lines
2.3 KiB
Diff
Raw Normal View History

From 3d0f1e5a448ac667c3d9f3bd9ca09e467fa53871 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Mon, 14 Jan 2019 12:18:26 +1100
Subject: [PATCH 5/6] vssapi: Add CreateVssBackupComponentsInternal stub
---
dlls/vssapi/main.c | 7 +++++++
dlls/vssapi/vssapi.spec | 2 +-
include/vsbackup.idl | 11 +++++++++++
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/dlls/vssapi/main.c b/dlls/vssapi/main.c
index 9234544..a24b320 100644
--- a/dlls/vssapi/main.c
+++ b/dlls/vssapi/main.c
@@ -22,6 +22,7 @@
#include "winbase.h"
#include "vss.h"
#include "vswriter.h"
+#include "vsbackup.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL( vssapi );
@@ -107,3 +108,9 @@ HRESULT __thiscall VSSAPI_CVssWriter_Unsubscribe( struct CVssWriter *writer )
FIXME( "%p\n", writer );
return S_OK;
}
+
+HRESULT WINAPI CreateVssBackupComponentsInternal(IVssBackupComponents **backup)
+{
+ FIXME("%p\n", backup);
+ return E_NOTIMPL;
+}
diff --git a/dlls/vssapi/vssapi.spec b/dlls/vssapi/vssapi.spec
index 146feb4..7bd47e8 100644
--- a/dlls/vssapi/vssapi.spec
+++ b/dlls/vssapi/vssapi.spec
@@ -75,7 +75,7 @@
@ stub ?Uninitialize@CVssJetWriter@@QAGXXZ
@ thiscall -arch=i386 ?Unsubscribe@CVssWriter@@QAGJXZ(ptr) VSSAPI_CVssWriter_Unsubscribe
@ cdecl -arch=win64 ?Unsubscribe@CVssWriter@@QEAAJXZ(ptr) VSSAPI_CVssWriter_Unsubscribe
-@ stub CreateVssBackupComponentsInternal
+@ stdcall CreateVssBackupComponentsInternal(ptr)
@ stub CreateVssExamineWriterMetadataInternal
@ stub CreateVssExpressWriterInternal
@ stub CreateWriter
diff --git a/include/vsbackup.idl b/include/vsbackup.idl
index 0b5a2d3..e2f5a54 100644
--- a/include/vsbackup.idl
+++ b/include/vsbackup.idl
@@ -25,6 +25,17 @@ interface IVssEnumObject;
interface IVssExamineWriterMetadata;
interface IVssWriterComponentsExt;
+cpp_quote("#ifdef _cplusplus")
+cpp_quote("extern \"C\" {")
+cpp_quote("#endif")
+cpp_quote("HRESULT WINAPI CreateVssBackupComponentsInternal(IVssBackupComponents **backup);")
+cpp_quote("#ifdef _cplusplus")
+cpp_quote("}")
+cpp_quote("#endif")
+
+cpp_quote("static inline HRESULT CreateVssBackupComponents(IVssBackupComponents **backup)")
+cpp_quote(" { return CreateVssBackupComponentsInternal(backup); }")
+
[
uuid("665c1d5f-c218-414d-a05d-7fef5f9d5c86"),
local
--
1.9.1