]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Tue, 19 Oct 2010 19:02:33 +0000 (12:02 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 19 Oct 2010 19:02:33 +0000 (12:02 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/services/plugins/vmbackup/stateMachine.c
open-vm-tools/services/plugins/vmbackup/vmBackupInt.h

index b704603dce8a69e3a6cd32cbd1fca77604000d4b..a60ef118076e6c5e86f73b24e401c9cacbc0d915 100644 (file)
@@ -984,9 +984,12 @@ ToolsOnLoad(ToolsAppCtx *ctx)
 #if defined(G_PLATFORM_WIN32)
    /*
     * If initializing COM fails (unlikely), we'll fallback to the sync driver
-    * or the null provider, depending on the configuration.
+    * or the null provider, depending on the configuration. On success, send
+    * a request to unregister the VMware snapshot provider.
     */
-   if (!ToolsCore_InitializeCOM(ctx)) {
+   if (ToolsCore_InitializeCOM(ctx)) {
+      VmBackup_UnregisterSnapshotProvider();
+   } else {
       g_warning("Failed to initialize COM, VSS support will be unavailable.");
    }
 #endif
index 6c0e79cf2aec4618bfc7d3e30bdfdfa19882a421..dabd547bf68d0e14ae00f358ce9193a3707437cc 100644 (file)
@@ -214,6 +214,9 @@ VmBackup_NewSyncDriverProvider(void);
 #if defined(G_PLATFORM_WIN32)
 VmBackupSyncProvider *
 VmBackup_NewVssProvider(void);
+
+void
+VmBackup_UnregisterSnapshotProvider(void);
 #endif
 
 VmBackupOp *