From: Thorsten Engel Date: Thu, 14 Jul 2005 09:46:53 +0000 (+0000) Subject: - bugfix (failure in VSS was not handled correctly) X-Git-Tag: Release-1.38.0~309 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2bce4a6019fecbbc0708d242b51b8927b3d01da;p=bacula%2Fbacula - 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 --- 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;