git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2150
91ce42f0-d328-0410-95d8-
f526ca767f89
#ifdef WIN32_VSS
/* START VSS ON WIN 32 */
- if (g_pVSSClient) {
+ if (g_pVSSClient && enable_vss == 1) {
if (g_pVSSClient->InitializeForBackup()) {
/* tell vss which drives to snapshot */
char szWinDriveLetters[27];
#ifdef WIN32_VSS
/* STOP VSS ON WIN 32 */
/* tell vss to close the backup session */
- if (g_pVSSClient)
+ if (g_pVSSClient && enable_vss == 1)
g_pVSSClient->CloseBackup();
#endif