https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1761bedb823d8ac7aa915…
commit 1761bedb823d8ac7aa91540f857a2df491d18ead
Author: Oleg Dubinskiy <oleg.dubinskij2013(a)yandex.ua>
AuthorDate: Thu Mar 26 16:47:16 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Jun 7 19:45:05 2020 +0200
[VSSAPI] Add missing wrapper for
?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z and
_VSSAPI_CreateVssBackupComponents@4 in msvc.s, to fix MSVC compilation
---
dll/win32/vssapi/msvc.s | 7 +++++++
dll/win32/vssapi/vssapi.spec | 3 ++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/dll/win32/vssapi/msvc.s b/dll/win32/vssapi/msvc.s
index 15121c10e8a..c65d6ae960e 100644
--- a/dll/win32/vssapi/msvc.s
+++ b/dll/win32/vssapi/msvc.s
@@ -20,4 +20,11 @@ DEFINE_THISCALL_WRAPPER
?Initialize@CVssWriter@@QAGJU_GUID@@PBGW4VSS_USAGE_TYPE@
DEFINE_THISCALL_WRAPPER ?Subscribe@CVssWriter@@QAGJK@Z, _VSSAPI_CVssWriter_Subscribe@8
DEFINE_THISCALL_WRAPPER ?Unsubscribe@CVssWriter@@QAGJXZ,
_VSSAPI_CVssWriter_Unsubscribe@4
+MACRO(DEFINE_ALIAS, alias, orig)
+EXTERN &orig:PROC
+ALIAS <&alias> = <&orig>
+ENDM
+
+DEFINE_ALIAS ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z,
_VSSAPI_CreateVssBackupComponents@4
+
END
diff --git a/dll/win32/vssapi/vssapi.spec b/dll/win32/vssapi/vssapi.spec
index 6e3f1ade503..7698cba3372 100644
--- a/dll/win32/vssapi/vssapi.spec
+++ b/dll/win32/vssapi/vssapi.spec
@@ -7,7 +7,8 @@
@ cdecl -arch=i386 ??1CVssWriter@@UAE@XZ(ptr) VSSAPI_CVssWriter_dtor
@ stub ?AreComponentsSelected@CVssJetWriter@@IBG_NXZ
@ stub ?AreComponentsSelected@CVssWriter@@IBG_NXZ
-@ stdcall ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z(ptr)
VSSAPI_CreateVssBackupComponents
+@ stdcall -arch=i386 ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z(ptr)
VSSAPI_CreateVssBackupComponents
+@ stdcall -arch=amd64 ?CreateVssBackupComponents@@YAJPEAPEAVIVssBackupComponents@@@Z(ptr)
VSSAPI_CreateVssBackupComponents
@ stub ?CreateVssExamineWriterMetadata@@YGJPAGPAPAVIVssExamineWriterMetadata@@@Z
@ stub ?CreateVssSnapshotSetDescription@@YGJU_GUID@@JPAPAVIVssSnapshotSetDescription@@@Z
@ stub ?GetBackupType@CVssJetWriter@@IBG?AW4_VSS_BACKUP_TYPE@@XZ