]> git.sur5r.net Git - bacula/bacula/commitdiff
- bugfix (failure in VSS was not handled correctly)
authorThorsten Engel <thorsten.engel@matrix-computer.com>
Thu, 14 Jul 2005 09:46:53 +0000 (09:46 +0000)
committerThorsten Engel <thorsten.engel@matrix-computer.com>
Thu, 14 Jul 2005 09:46:53 +0000 (09:46 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2195 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/win32/compat/vss_generic.cpp

index bafc9ee380dc6241d3e3fd38af091eba3a531707..2a2eb81427bc93b144dd326cbeb48517a05b8da6 100644 (file)
@@ -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;