From d2bce4a6019fecbbc0708d242b51b8927b3d01da Mon Sep 17 00:00:00 2001 From: Thorsten Engel Date: Thu, 14 Jul 2005 09:46:53 +0000 Subject: [PATCH] - bugfix (failure in VSS was not handled correctly) git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2195 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/win32/compat/vss_generic.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bacula/src/win32/compat/vss_generic.cpp b/bacula/src/win32/compat/vss_generic.cpp index bafc9ee380..2a2eb81427 100644 --- a/bacula/src/win32/compat/vss_generic.cpp +++ b/bacula/src/win32/compat/vss_generic.cpp @@ -439,9 +439,8 @@ void VSSClientGeneric::QuerySnapshotSet(GUID snapshotSetID) &pIEnumSnapshots ); // If there are no shadow copies, just return - if (hr == S_FALSE) { - return; - } + if (FAILED(hr)) + return; // Enumerate all shadow copies. VSS_OBJECT_PROP Prop; -- 2.39.5