Skip to content

Commit 1761bed

Browse files
oleg-dubinskiylearn-more
authored andcommitted
[VSSAPI] Add missing wrapper for ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@z and _VSSAPI_CreateVssBackupComponents@4 in msvc.s, to fix MSVC compilation
1 parent 23a1f8d commit 1761bed

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dll/win32/vssapi/msvc.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ DEFINE_THISCALL_WRAPPER ?Initialize@CVssWriter@@QAGJU_GUID@@PBGW4VSS_USAGE_TYPE@
2020
DEFINE_THISCALL_WRAPPER ?Subscribe@CVssWriter@@QAGJK@Z, _VSSAPI_CVssWriter_Subscribe@8
2121
DEFINE_THISCALL_WRAPPER ?Unsubscribe@CVssWriter@@QAGJXZ, _VSSAPI_CVssWriter_Unsubscribe@4
2222

23+
MACRO(DEFINE_ALIAS, alias, orig)
24+
EXTERN &orig:PROC
25+
ALIAS <&alias> = <&orig>
26+
ENDM
27+
28+
DEFINE_ALIAS ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z, _VSSAPI_CreateVssBackupComponents@4
29+
2330
END

dll/win32/vssapi/vssapi.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
@ cdecl -arch=i386 ??1CVssWriter@@UAE@XZ(ptr) VSSAPI_CVssWriter_dtor
88
@ stub ?AreComponentsSelected@CVssJetWriter@@IBG_NXZ
99
@ stub ?AreComponentsSelected@CVssWriter@@IBG_NXZ
10-
@ stdcall ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z(ptr) VSSAPI_CreateVssBackupComponents
10+
@ stdcall -arch=i386 ?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z(ptr) VSSAPI_CreateVssBackupComponents
11+
@ stdcall -arch=amd64 ?CreateVssBackupComponents@@YAJPEAPEAVIVssBackupComponents@@@Z(ptr) VSSAPI_CreateVssBackupComponents
1112
@ stub ?CreateVssExamineWriterMetadata@@YGJPAGPAPAVIVssExamineWriterMetadata@@@Z
1213
@ stub ?CreateVssSnapshotSetDescription@@YGJU_GUID@@JPAPAVIVssSnapshotSetDescription@@@Z
1314
@ stub ?GetBackupType@CVssJetWriter@@IBG?AW4_VSS_BACKUP_TYPE@@XZ

0 commit comments

Comments
 (0)