From 699f22d051e86798e1d52090b0dfcaee2c0e2255 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 4 May 2015 19:44:00 -0400 Subject: [PATCH] VBOX: Make sure vboxsvc is launched outside the slot directory in sandbox mode on Windows. --- samples/vboxwrapper/vbox_mscom_impl.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/samples/vboxwrapper/vbox_mscom_impl.cpp b/samples/vboxwrapper/vbox_mscom_impl.cpp index b33dcbf94c..a0a7d7c60a 100644 --- a/samples/vboxwrapper/vbox_mscom_impl.cpp +++ b/samples/vboxwrapper/vbox_mscom_impl.cpp @@ -2287,7 +2287,18 @@ int VBOX_VM::launch_vboxsvc() { command = "\"VBoxSVC.exe\" --logrotate 1"; - CreateProcess(NULL, (LPTSTR)command.c_str(), NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi); + CreateProcess( + NULL, + (LPTSTR)command.c_str(), + NULL, + NULL, + TRUE, + CREATE_NO_WINDOW, + NULL, + virtualbox_home_directory.c_str(), + &si, + &pi + ); if (pi.hThread) CloseHandle(pi.hThread); if (pi.hProcess) {