From e3316714ffbf1e7d44c38cfabc4117921bef79a3 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 14 Aug 2013 11:51:30 -0400 Subject: [PATCH] VBOX: Make the disable USB/COM/LPT/Clipboard/DragDrop VM modifications non-fatal. Some commands appear to have introduced in recent builds of VirtualBox and error out on older builds. --- samples/vboxwrapper/vbox.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index 53d168fe36..99d2719c6c 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -828,10 +828,8 @@ int VBOX_VM::register_vm() { ); command = "modifyvm \"" + vm_name + "\" "; command += "--usb off "; - command += "--usbcardreader off "; retval = vbm_popen(command, output, "modifyusb", false, false); - if (retval) return retval; // Tweak the VM's COM Port Support // @@ -845,7 +843,6 @@ int VBOX_VM::register_vm() { command += "--uart2 off "; retval = vbm_popen(command, output, "modifycom", false, false); - if (retval) return retval; // Tweak the VM's LPT Port Support // @@ -859,7 +856,6 @@ int VBOX_VM::register_vm() { command += "--lpt2 off "; retval = vbm_popen(command, output, "modifylpt", false, false); - if (retval) return retval; // Tweak the VM's Audio Support // @@ -872,7 +868,6 @@ int VBOX_VM::register_vm() { command += "--audio none "; retval = vbm_popen(command, output, "modifyaudio", false, false); - if (retval) return retval; // Tweak the VM's Clipboard Support // @@ -885,7 +880,6 @@ int VBOX_VM::register_vm() { command += "--clipboard disabled "; retval = vbm_popen(command, output, "modifyclipboard", false, false); - if (retval) return retval; // Tweak the VM's Drag & Drop Support // @@ -898,7 +892,6 @@ int VBOX_VM::register_vm() { command += "--draganddrop disabled "; retval = vbm_popen(command, output, "modifydragdrop", false, false); - if (retval) return retval; // Only perform hardware acceleration check on 32-bit VM types, 64-bit VM types require it. //