VBOX: Make sure vboxsvc is launched outside the slot directory in sandbox mode on Windows.

This commit is contained in:
Rom Walton 2015-05-04 19:44:00 -04:00
parent 579597be93
commit 699f22d051
1 changed files with 12 additions and 1 deletions

View File

@ -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) {